Project

General

Profile

« Previous | Next » 

Revision ffd68f35

Added by Leszek Koltunski over 3 years ago

Make it so that the Navigation Bar does not re-appear when we pop up a DialogFragment.

Now there's noly 1 case when it still reappears: it's when we pop up a PopupWindow.

View differences:

src/main/java/org/distorted/dialogs/RubikDialogAbout.java
116 116
    if( window!=null )
117 117
      {
118 118
      window.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
119
      window.setFlags(WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE, WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE);
120
      window.getDecorView().setSystemUiVisibility(RubikActivity.FLAGS);
119 121
      }
120 122

  
121 123
    dialog.setOnShowListener(new DialogInterface.OnShowListener()

Also available in: Unified diff