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/RubikDialogPrivacy.java
28 28
import android.util.TypedValue;
29 29
import android.view.LayoutInflater;
30 30
import android.view.View;
31
import android.view.Window;
32
import android.view.WindowManager;
31 33
import android.widget.Button;
32 34
import android.widget.TextView;
33 35

  
......
93 95
    final Dialog dialog = builder.create();
94 96
    dialog.setCanceledOnTouchOutside(false);
95 97

  
98
    Window window = dialog.getWindow();
99

  
100
    if( window!=null )
101
      {
102
      window.setFlags(WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE, WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE);
103
      window.getDecorView().setSystemUiVisibility(RubikActivity.FLAGS);
104
      }
105

  
96 106
    dialog.setOnShowListener(new DialogInterface.OnShowListener()
97 107
      {
98 108
      @Override

Also available in: Unified diff