summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2014-06-12 18:08:09 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-06-12 18:08:09 +0000
commit02a9c359a1a6e1175cdd2d560f97be9cdb816a0e (patch)
treeba80cf79a4f2c79d0c2ccf3d87f6cdfe1da59cba
parent0044b20eb71d48d0823d6526976001d8171a11c7 (diff)
parent91b7d2b4fb2b2608477f3e7dbfb10f6cb3cd6b85 (diff)
downloadframeworks_base-02a9c359a1a6e1175cdd2d560f97be9cdb816a0e.zip
frameworks_base-02a9c359a1a6e1175cdd2d560f97be9cdb816a0e.tar.gz
frameworks_base-02a9c359a1a6e1175cdd2d560f97be9cdb816a0e.tar.bz2
am e202fff5: Merge "Stop sending broadcasts to RecentsActivity before boot has completed. (Bug 15109101)" into lmp-preview-dev
* commit 'e202fff5f77568294ba4b50c879ca587535db3be': Stop sending broadcasts to RecentsActivity before boot has completed. (Bug 15109101)
-rw-r--r--packages/SystemUI/src/com/android/systemui/recents/RecentsService.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/recents/RecentsService.java b/packages/SystemUI/src/com/android/systemui/recents/RecentsService.java
index 0c2c11d..113efe3 100644
--- a/packages/SystemUI/src/com/android/systemui/recents/RecentsService.java
+++ b/packages/SystemUI/src/com/android/systemui/recents/RecentsService.java
@@ -121,6 +121,7 @@ class SystemUIMessageHandler extends Handler {
// Send a broadcast to hide recents
Intent intent = new Intent(RecentsService.ACTION_HIDE_RECENTS_ACTIVITY);
intent.setPackage(context.getPackageName());
+ intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
if (msg.arg1 != 0) {
intent.putExtra(RecentsService.EXTRA_TRIGGERED_FROM_ALT_TAB, true);
}
@@ -129,6 +130,7 @@ class SystemUIMessageHandler extends Handler {
// Send a broadcast to toggle recents
Intent intent = new Intent(RecentsService.ACTION_TOGGLE_RECENTS_ACTIVITY);
intent.setPackage(context.getPackageName());
+ intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
context.sendBroadcast(intent);
// Time this path
@@ -140,6 +142,7 @@ class SystemUIMessageHandler extends Handler {
// Send a broadcast to start the enter animation
Intent intent = new Intent(RecentsService.ACTION_START_ENTER_ANIMATION);
intent.setPackage(context.getPackageName());
+ intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
context.sendBroadcast(intent);
}
}