Revision ffd68f35
Added by Leszek Koltunski over 3 years ago
src/main/java/org/distorted/dialogs/RubikDialogError.java | ||
---|---|---|
26 | 26 |
import android.util.TypedValue; |
27 | 27 |
import android.view.LayoutInflater; |
28 | 28 |
import android.view.View; |
29 |
import android.view.Window; |
|
30 |
import android.view.WindowManager; |
|
29 | 31 |
import android.widget.Button; |
30 | 32 |
import android.widget.TextView; |
31 | 33 |
|
... | ... | |
91 | 93 |
final Dialog dialog = builder.create(); |
92 | 94 |
dialog.setCanceledOnTouchOutside(false); |
93 | 95 |
|
96 |
Window window = dialog.getWindow(); |
|
97 |
|
|
98 |
if( window!=null ) |
|
99 |
{ |
|
100 |
window.setFlags(WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE, WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE); |
|
101 |
window.getDecorView().setSystemUiVisibility(RubikActivity.FLAGS); |
|
102 |
} |
|
103 |
|
|
94 | 104 |
dialog.setOnShowListener(new DialogInterface.OnShowListener() |
95 | 105 |
{ |
96 | 106 |
@Override |
Also available in: Unified diff
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.