[Android] Make new storage dialog as not cancelable

Geoffrey Métais git at videolan.org
Tue Oct 31 11:52:14 CET 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Oct 31 09:55:11 2017 +0100| [009786fd8f4fc7ae6c960c960b85a8670268eb1e] | committer: Geoffrey Métais

Make new storage dialog as not cancelable

> https://code.videolan.org/videolan/vlc-android/commit/009786fd8f4fc7ae6c960c960b85a8670268eb1e
---

 vlc-android/src/org/videolan/vlc/gui/helpers/UiTools.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/helpers/UiTools.java b/vlc-android/src/org/videolan/vlc/gui/helpers/UiTools.java
index 49b80a00f..46a3e52d1 100644
--- a/vlc-android/src/org/videolan/vlc/gui/helpers/UiTools.java
+++ b/vlc-android/src/org/videolan/vlc/gui/helpers/UiTools.java
@@ -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) {



More information about the Android mailing list