mirror of
https://github.com/jamessanford/kegs.git
synced 2025-01-08 13:29:49 +00:00
Prevent accidental dismissal of error dialog.
This commit is contained in:
parent
0e2ec5d590
commit
e1ffa85baf
@ -190,8 +190,9 @@ public class KegsMain extends Activity implements KegsKeyboard.StickyReset, Asse
|
||||
public Dialog onCreateDialog(Bundle savedInstanceState) {
|
||||
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
|
||||
builder.setMessage(getResources().getText(R.string.rom_error));
|
||||
// TODO setCanceledOnTouchOutside(false) ? otherwise can accidentally dismiss the error.
|
||||
return builder.create();
|
||||
final AlertDialog dialog = builder.create();
|
||||
dialog.setCanceledOnTouchOutside(false); // prevent accidental dismissal
|
||||
return dialog;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user