diff options
author | Winson Chung <winsonc@google.com> | 2015-08-06 21:44:17 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-08-06 21:44:17 +0000 |
commit | bb55aa1a93cee91a40b6f5941675682cb6f8a83b (patch) | |
tree | 53c5203334e411bcd9d5a37ac7b8c4caa6c4c63e /packages | |
parent | a89e9f6d3207527888d7fab191ddbe92ff68fc79 (diff) | |
parent | 76ffdafc3cc59ad1749736de58285978e6c73622 (diff) | |
download | frameworks_base-bb55aa1a93cee91a40b6f5941675682cb6f8a83b.zip frameworks_base-bb55aa1a93cee91a40b6f5941675682cb6f8a83b.tar.gz frameworks_base-bb55aa1a93cee91a40b6f5941675682cb6f8a83b.tar.bz2 |
Merge "Fixing issue with empty Recents screen." into mnc-dev
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java | 16 |
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 789457d..b47fb30 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 |