Skip to content
Snippets Groups Projects
Commit 009786fd authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Make new storage dialog as not cancelable

parent 5e2a42b9
No related branches found
No related tags found
No related merge requests found
......@@ -414,6 +414,7 @@ public class UiTools {
if (activity instanceof AppCompatActivity) {
AlertDialog.Builder builder = new AlertDialog.Builder(activity)
.setTitle(R.string.ml_external_storage_title)
.setCancelable(false)
.setMessage(message)
.setPositiveButton(R.string.ml_external_storage_accept, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
......@@ -434,6 +435,7 @@ public class UiTools {
} else {
android.app.AlertDialog.Builder builder = new android.app.AlertDialog.Builder(activity)
.setTitle(R.string.ml_external_storage_title)
.setCancelable(false)
.setMessage(message)
.setPositiveButton(R.string.ml_external_storage_accept, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment