diff options
author | Dianne Hackborn <hackbod@google.com> | 2012-09-28 15:53:19 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-09-28 15:54:44 -0700 |
commit | 3ff8e1a80058e5557d13693d3223e1aa011c0038 (patch) | |
tree | 62d3c43fa2261c2aec17b76f08b7c8cc784c81fc /packages | |
parent | 1d3527354396d3aa48b494fb409d680cce32dc8b (diff) | |
parent | d4ac8d7b3de27a9f0e4c6af2496ca71d794e42d1 (diff) | |
download | frameworks_base-3ff8e1a80058e5557d13693d3223e1aa011c0038.zip frameworks_base-3ff8e1a80058e5557d13693d3223e1aa011c0038.tar.gz frameworks_base-3ff8e1a80058e5557d13693d3223e1aa011c0038.tar.bz2 |
Merge "Fix issue #7211769 and #7244492, thrash around on #7226656." into jb-mr1-dev
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/AndroidManifest.xml | 3 | ||||
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java | 13 |
2 files changed, 14 insertions, 2 deletions
diff --git a/packages/SystemUI/AndroidManifest.xml b/packages/SystemUI/AndroidManifest.xml index 3ef44d9..eb8a5ff 100644 --- a/packages/SystemUI/AndroidManifest.xml +++ b/packages/SystemUI/AndroidManifest.xml @@ -1,4 +1,5 @@ <manifest xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" package="com.android.systemui" coreApp="true"> @@ -91,7 +92,7 @@ android:permission="android.permission.BIND_WALLPAPER" android:exported="true" /> - <receiver android:name=".BootReceiver" > + <receiver android:name=".BootReceiver" androidprv:primaryUserOnly="true"> <intent-filter> <action android:name="android.intent.action.BOOT_COMPLETED" /> </intent-filter> diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java index 165250b..f3c2df1 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java @@ -708,7 +708,18 @@ class QuickSettings { @Override public void onClick(DialogInterface dialog, int which) { if (which == DialogInterface.BUTTON_POSITIVE) { - SystemProperties.set("ctl.start", "bugreport"); + // Add a little delay before executing, to give the + // dialog a chance to go away before it takes a + // screenshot. + mHandler.postDelayed(new Runnable() { + @Override public void run() { + try { + ActivityManagerNative.getDefault() + .requestBugReport(); + } catch (RemoteException e) { + } + } + }, 500); } } }); |