summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2015-02-03 21:24:51 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-02-03 21:24:51 +0000
commit6317e06635ed52a9d1c1aeb0439017418f57ad0f (patch)
tree3ddccf3e5908e9e15dbccb30cf7efb2ab6857c5c
parentfa893886418a077c94ac7280a756b207fc821583 (diff)
parentdc333212bdab6d9da7f3dc7bd813350d06179c5c (diff)
downloadpackages_apps_Settings-6317e06635ed52a9d1c1aeb0439017418f57ad0f.zip
packages_apps_Settings-6317e06635ed52a9d1c1aeb0439017418f57ad0f.tar.gz
packages_apps_Settings-6317e06635ed52a9d1c1aeb0439017418f57ad0f.tar.bz2
Merge "set tapjacking protection for deviceadmin permission dialog"
-rw-r--r--src/com/android/settings/DeviceAdminAdd.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/settings/DeviceAdminAdd.java b/src/com/android/settings/DeviceAdminAdd.java
index ed95500..c9f876b 100644
--- a/src/com/android/settings/DeviceAdminAdd.java
+++ b/src/com/android/settings/DeviceAdminAdd.java
@@ -259,6 +259,7 @@ public class DeviceAdminAdd extends Activity {
mAdminWarning = (TextView) findViewById(R.id.admin_warning);
mAdminPolicies = (ViewGroup) findViewById(R.id.admin_policies);
mCancelButton = (Button) findViewById(R.id.cancel_button);
+ mCancelButton.setFilterTouchesWhenObscured(true);
mCancelButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
EventLog.writeEvent(EventLogTags.EXP_DET_DEVICE_ADMIN_DECLINED_BY_USER,
@@ -267,6 +268,7 @@ public class DeviceAdminAdd extends Activity {
}
});
mActionButton = (Button) findViewById(R.id.action_button);
+ mActionButton.setFilterTouchesWhenObscured(true);
mActionButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
if (mAdding) {