Revision 85248b04
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/dialogs/RubikDialogNewRecord.java | ||
---|---|---|
141 | 141 |
text.setText(getString(R.string.ti_placeholder, (time/100)/10.0f)); |
142 | 142 |
builder.setView(view); |
143 | 143 |
|
144 |
return builder.create(); |
|
144 |
Dialog dialog = builder.create(); |
|
145 |
|
|
146 |
dialog.setCanceledOnTouchOutside(false); |
|
147 |
|
|
148 |
Window window = dialog.getWindow(); |
|
149 |
|
|
150 |
if( window!=null ) |
|
151 |
{ |
|
152 |
window.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND); |
|
153 |
} |
|
154 |
|
|
155 |
return dialog; |
|
145 | 156 |
} |
146 | 157 |
} |
Also available in: Unified diff
Finally solve the bug on Samsung Android 9 and 10 phones that the Dialogs Main & patterns wouldn't be modeless: move the setting of this flag earlier, to the 'onCreateDialog()' function.