Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kindle Fire : in full screen mode the menu bar appears when launching a dialogfragment

I have an Activity which is displayed in full screen mode (using android:theme="@android:style/Theme.NoTitleBar.Fullscreen"). When I launch a DialogFragment from this Activity the kindle menu appears, how to keep it hidden ?

I have tried fullscreen flags as https://developer.amazon.com/sdk/fire/screen-layout.html#StatusSoft

like image 406
Jacques Giraudel Avatar asked Jan 29 '26 19:01

Jacques Giraudel


1 Answers

Try this in your DialogFragment class:

@Override
public Dialog getDialog()
{
    Dialog dialog = super.getDialog();
    dialog.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
    return dialog;
}
like image 115
metaphyze Avatar answered Jan 31 '26 09:01

metaphyze



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!