summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSvetoslav Ganov <svetoslavganov@google.com>2016-07-13 20:41:33 (GMT)
committergitbuildkicker <android-build@google.com>2016-08-02 02:13:33 (GMT)
commit6c84557c2c3973547f986392471b406f9270dffc (patch)
tree08a56631a4e2ab88a767c6aa502b5758ef22bb08
parent064d188792203b6d62337101be73c9c998f9e69d (diff)
downloadandroid_packages_apps_PackageInstaller-cm-14.0.zip
android_packages_apps_PackageInstaller-cm-14.0.tar.gz
android_packages_apps_PackageInstaller-cm-14.0.tar.bz2
Hide toast windows when permissions UI showncm-14.0
When the permissions UI is showing we are hiding the system alrert windows that can overlay it in an attempt to redress the UI. It is however, also possible to use a toast window to overlay the permissions UI. This change makes sure we hide the toasts in addition to system alert windows when the permissions UI is showing. bug:30087538 Change-Id: Ifb9ecf4593ca24b628212f0737d574a537f0cccd (cherry picked from commit cc5e0323e83d6124f45ca75f55bc58793b550035)
-rw-r--r--src/com/android/packageinstaller/permission/ui/OverlayTouchActivity.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/packageinstaller/permission/ui/OverlayTouchActivity.java b/src/com/android/packageinstaller/permission/ui/OverlayTouchActivity.java
index b23ab2e..a7800ca 100644
--- a/src/com/android/packageinstaller/permission/ui/OverlayTouchActivity.java
+++ b/src/com/android/packageinstaller/permission/ui/OverlayTouchActivity.java
@@ -40,6 +40,8 @@ public class OverlayTouchActivity extends Activity {
if (appOpsManager != null) {
appOpsManager.setUserRestriction(AppOpsManager.OP_SYSTEM_ALERT_WINDOW,
!allowed, mToken);
+ appOpsManager.setUserRestriction(AppOpsManager.OP_TOAST_WINDOW,
+ !allowed, mToken);
}
}
}