summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Winson Chung <winsonc@google.com> 2015-08-06 22:08:33 +0000
committer Android Git Automerger <android-git-automerger@android.com> 2015-08-06 22:08:33 +0000
commit1353b0f5e6494e97e3d41853127bb0fec420792c (patch)
tree0154ffedb4ba205d4fbd9efa38a0cee361b969c8
parentd385c56dc31a91834e3b3e97c646568be40914bd (diff)
parent6bf21c3a06c9f08a650d5f2aadd29389c636fb1e (diff)
am 6bf21c3a: am b762a9a5: am bb55aa1a: Merge "Fixing issue with empty Recents screen." into mnc-dev
* commit '6bf21c3a06c9f08a650d5f2aadd29389c636fb1e': Fixing issue with empty Recents screen.
-rw-r--r--packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java16
1 files changed, 14 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java b/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
index 789457da6e83..b47fb3044897 100644
--- a/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
+++ b/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
@@ -419,8 +419,10 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView
updateRecentsTasks();
// If this is a new instance from a configuration change, then we have to manually trigger
- // the enter animation state
- if (mConfig.launchedHasConfigurationChanged) {
+ // the enter animation state, or if recents was relaunched by AM, without going through
+ // the normal mechanisms
+ boolean wasLaunchedByAm = !mConfig.launchedFromHome && !mConfig.launchedFromAppWithThumbnail;
+ if (mConfig.launchedHasConfigurationChanged || wasLaunchedByAm) {
onEnterAnimationTriggered();
}
@@ -454,6 +456,16 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView
// Unregister any broadcast receivers for the task loader
loader.unregisterReceivers();
+
+ // Workaround for b/22542869, if the RecentsActivity is started again, but without going
+ // through SystemUI, we need to reset the config launch flags to ensure that we do not
+ // wait on the system to send a signal that was never queued.
+ mConfig.launchedFromHome = false;
+ mConfig.launchedFromSearchHome = false;
+ mConfig.launchedFromAppWithThumbnail = false;
+ mConfig.launchedToTaskId = -1;
+ mConfig.launchedWithAltTab = false;
+ mConfig.launchedHasConfigurationChanged = false;
}
@Override