Avoid Cast Initialization UI - prompt restart only when enabled. Make prompt more sticky by being not cancelable.
This commit is contained in:
parent
9373b61787
commit
78aecac3ca
@ -32,7 +32,6 @@ public class PreferenceControllerFlavorHelper {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
displayRestartRequiredDialog(ui.requireContext());
|
||||
return true;
|
||||
});
|
||||
}
|
||||
@ -42,6 +41,7 @@ public class PreferenceControllerFlavorHelper {
|
||||
dialog.setTitle(android.R.string.dialog_alert_title);
|
||||
dialog.setMessage(R.string.pref_restart_required);
|
||||
dialog.setPositiveButton(android.R.string.ok, null);
|
||||
dialog.setCancelable(false);
|
||||
dialog.show();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user