Revision b88be423
Added by Leszek Koltunski over 4 years ago
src/main/java/org/distorted/dialogs/RubikDialogMain.java | ||
---|---|---|
42 | 42 |
super.onStart(); |
43 | 43 |
|
44 | 44 |
Dialog dialog = getDialog(); |
45 |
dialog.setCanceledOnTouchOutside(false); |
|
46 | 45 |
|
47 |
Window window = dialog.getWindow(); |
|
48 |
|
|
49 |
if( window!=null ) |
|
46 |
if( dialog!=null ) |
|
50 | 47 |
{ |
51 |
window.setFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL, |
|
52 |
WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL); |
|
53 |
window.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND); |
|
48 |
dialog.setCanceledOnTouchOutside(false); |
|
49 |
|
|
50 |
Window window = dialog.getWindow(); |
|
51 |
|
|
52 |
if( window!=null ) |
|
53 |
{ |
|
54 |
window.setFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL, |
|
55 |
WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL); |
|
56 |
window.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND); |
|
57 |
} |
|
54 | 58 |
} |
55 | 59 |
} |
56 | 60 |
|
src/main/java/org/distorted/dialogs/RubikDialogPattern.java | ||
---|---|---|
44 | 44 |
|
45 | 45 |
public class RubikDialogPattern extends AppCompatDialogFragment |
46 | 46 |
{ |
47 |
RubikDialogPatternPagerAdapter mPagerAdapter; |
|
47 |
private RubikDialogPatternPagerAdapter mPagerAdapter;
|
|
48 | 48 |
|
49 | 49 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
50 | 50 |
|
... | ... | |
54 | 54 |
super.onStart(); |
55 | 55 |
|
56 | 56 |
Dialog dialog = getDialog(); |
57 |
dialog.setCanceledOnTouchOutside(false); |
|
58 | 57 |
|
59 |
Window window = dialog.getWindow(); |
|
60 |
|
|
61 |
if( window!=null ) |
|
58 |
if( dialog!=null ) |
|
62 | 59 |
{ |
63 |
window.setFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL, |
|
64 |
WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL); |
|
65 |
window.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND); |
|
60 |
dialog.setCanceledOnTouchOutside(false); |
|
61 |
|
|
62 |
Window window = dialog.getWindow(); |
|
63 |
|
|
64 |
if( window!=null ) |
|
65 |
{ |
|
66 |
window.setFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL, |
|
67 |
WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL); |
|
68 |
window.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND); |
|
69 |
} |
|
66 | 70 |
} |
67 | 71 |
} |
68 | 72 |
|
Also available in: Unified diff
Minor.