Bug 1399791 Make Android extension permission dialog modal r=walkingice
authorAndrew Swan <aswan@mozilla.com>
Thu, 14 Sep 2017 11:29:18 -0700
changeset 665689 2939dc6bb578d28d8b75dc8ed91065ad7b8cce65
parent 665688 2125fac068a6e36b387ff952715bf4133d5555a3
child 665690 20d129c15a9990da780859ca97fff236a1052e05
push id80148
push userbmo:emilio@crisal.io
push dateFri, 15 Sep 2017 20:59:22 +0000
reviewerswalkingice
bugs1399791
milestone57.0a1
Bug 1399791 Make Android extension permission dialog modal r=walkingice MozReview-Commit-ID: Hb3dJU85z4v
mobile/android/base/java/org/mozilla/gecko/extensions/ExtensionPermissionsHelper.java
--- a/mobile/android/base/java/org/mozilla/gecko/extensions/ExtensionPermissionsHelper.java
+++ b/mobile/android/base/java/org/mozilla/gecko/extensions/ExtensionPermissionsHelper.java
@@ -83,15 +83,17 @@ public class ExtensionPermissionsHelper 
                 ResourceDrawableUtils.getDrawable(mContext, iconUrl, new ResourceDrawableUtils.BitmapLoader() {
                         @Override
                         public void onBitmapFound(final Drawable d) {
                             headerText.setCompoundDrawablesWithIntrinsicBounds(d, null, null, null);
                         }
                     });
             }
 
+            builder.setCancelable(false);
+
             final AlertDialog dialog = builder.create();
             dialog.show();
         } else if ("Extension:ShowUpdateIcon".equals(event)) {
             mShowUpdateIcon = message.getBoolean("value");
         }
     }
 }