summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/DeviceAdminAdd.java
diff options
context:
space:
mode:
authorStephan Huber <huber.stephan.sit@gmail.com>2015-01-23 09:49:57 +0100
committerStephan Huber <huber.stephan.sit@gmail.com>2015-01-30 14:38:10 +0100
commitdc333212bdab6d9da7f3dc7bd813350d06179c5c (patch)
tree3ddccf3e5908e9e15dbccb30cf7efb2ab6857c5c /src/com/android/settings/DeviceAdminAdd.java
parentfa893886418a077c94ac7280a756b207fc821583 (diff)
downloadpackages_apps_Settings-dc333212bdab6d9da7f3dc7bd813350d06179c5c.tar.gz
packages_apps_Settings-dc333212bdab6d9da7f3dc7bd813350d06179c5c.tar.bz2
packages_apps_Settings-dc333212bdab6d9da7f3dc7bd813350d06179c5c.zip
set tapjacking protection for deviceadmin permission dialog
Second try to commit tapjacking protection for device administrator permission dialog. Remplaced tap by spaces Signed-off-by: Stephan Huber <huber.stephan.sit@gmail.com> Change-Id: I8e14e713d1f039ca79f5006cdeb12b65652884fb
Diffstat (limited to 'src/com/android/settings/DeviceAdminAdd.java')
-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 ed95500e5..c9f876b3b 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) {