summaryrefslogtreecommitdiffstats
path: root/packages/VpnDialogs
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2013-02-13 16:32:36 -0800
committerKenny Root <kroot@google.com>2013-02-13 16:32:48 -0800
commit56480ef53fe63f03d069ba76d8f90e712d764c9b (patch)
treee4b9fd3ed9b5bb3cd27d11d22128ab9705297e47 /packages/VpnDialogs
parentb0f4b8a7d2662e8cc63dae1001175bf72bca1539 (diff)
downloadframeworks_base-56480ef53fe63f03d069ba76d8f90e712d764c9b.zip
frameworks_base-56480ef53fe63f03d069ba76d8f90e712d764c9b.tar.gz
frameworks_base-56480ef53fe63f03d069ba76d8f90e712d764c9b.tar.bz2
VpnDialogs: filter obscured touches
Change-Id: Ifcc919c36006c88e36363f5160f9334df0cf7e5b
Diffstat (limited to 'packages/VpnDialogs')
-rw-r--r--packages/VpnDialogs/res/layout/confirm.xml1
-rw-r--r--packages/VpnDialogs/src/com/android/vpndialogs/ConfirmDialog.java1
2 files changed, 2 insertions, 0 deletions
diff --git a/packages/VpnDialogs/res/layout/confirm.xml b/packages/VpnDialogs/res/layout/confirm.xml
index fef00c2..ee7f4b8 100644
--- a/packages/VpnDialogs/res/layout/confirm.xml
+++ b/packages/VpnDialogs/res/layout/confirm.xml
@@ -52,6 +52,7 @@
android:layout_height="wrap_content"
android:text="@string/accept"
android:textSize="20sp"
+ android:filterTouchesWhenObscured="true"
android:checked="false"/>
</LinearLayout>
</ScrollView>
diff --git a/packages/VpnDialogs/src/com/android/vpndialogs/ConfirmDialog.java b/packages/VpnDialogs/src/com/android/vpndialogs/ConfirmDialog.java
index 7a1e66c..6faf4e0 100644
--- a/packages/VpnDialogs/src/com/android/vpndialogs/ConfirmDialog.java
+++ b/packages/VpnDialogs/src/com/android/vpndialogs/ConfirmDialog.java
@@ -78,6 +78,7 @@ public class ConfirmDialog extends AlertActivity implements
getWindow().setCloseOnTouchOutside(false);
mButton = mAlert.getButton(DialogInterface.BUTTON_POSITIVE);
mButton.setEnabled(false);
+ mButton.setFilterTouchesWhenObscured(true);
} catch (Exception e) {
Log.e(TAG, "onResume", e);
finish();