summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Thierer <tobiast@google.com>2019-05-24 18:55:02 (GMT)
committerLuca Stefani <luca.stefani.ge1@gmail.com>2019-07-27 20:57:26 (GMT)
commitaf4eb1c0d9b9a2eb746c39fffc6ec6d94c57414a (patch)
tree8b744945295aa119d518a82d0b4cdb661a319c4b
parent48c89fb287d526f2212a516eee44765f90e4aed6 (diff)
downloadframeworks_base-af4eb1c0d9b9a2eb746c39fffc6ec6d94c57414a.zip
frameworks_base-af4eb1c0d9b9a2eb746c39fffc6ec6d94c57414a.tar.gz
frameworks_base-af4eb1c0d9b9a2eb746c39fffc6ec6d94c57414a.tar.bz2
Stop USB Debugging authorization window dismissing on tap outside.
This dialog is onerous to trigger (requires disconnecting and reconnecting the device), and is too easy to dismiss accidentally by slightly mis-tapping (happens to me all the time). This code is mostly abandoned - it has barely been touched at all since it was introduced in 2012. This CL makes it not dismiss when the user clicks outside the dialog. To dismiss, the user now has to click either CANCEL or ALLOW. Test: Manually checked that clicking outside the dialog dismissed it before but not after this CL. Change-Id: I603bba9c79e0df8a52ba7db323fea3a13acaa0a5
-rw-r--r--packages/SystemUI/src/com/android/systemui/usb/UsbDebuggingActivity.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/usb/UsbDebuggingActivity.java b/packages/SystemUI/src/com/android/systemui/usb/UsbDebuggingActivity.java
index 66d5ee1..d9523c8 100644
--- a/packages/SystemUI/src/com/android/systemui/usb/UsbDebuggingActivity.java
+++ b/packages/SystemUI/src/com/android/systemui/usb/UsbDebuggingActivity.java
@@ -86,6 +86,7 @@ public class UsbDebuggingActivity extends AlertActivity
mAlwaysAllow = (CheckBox)checkbox.findViewById(com.android.internal.R.id.alwaysUse);
mAlwaysAllow.setText(getString(R.string.usb_debugging_always));
ap.mView = checkbox;
+ window.setCloseOnTouchOutside(false);
setupAlert();