diff options
author | Alex Chau <alexchau@google.com> | 2021-07-28 17:23:20 +0100 |
---|---|---|
committer | Alex Chau <alexchau@google.com> | 2021-07-30 08:22:03 +0000 |
commit | fb5ae9060dcb2bc562f915c0f3271aaf1cabc960 (patch) | |
tree | 337ed02baaef9c18ad52036094686b5658c2f179 | |
parent | dec3330a83dffc6f5b64cde71bc0702b8115498c (diff) | |
download | Launcher3-fb5ae9060dcb2bc562f915c0f3271aaf1cabc960.tar.gz |
Always treat FallbackRecentsView as visible if isInLiveTileMode is true
- activity.hasBeenResumed is no longer an accurate indicator after live tile has been introduced, indeed it's always false
- Return recentsView regardless if there is a runningTask as well
Bug: 194286330
Test: In fallback Recents with 3 button, tap overview button from home screen, then tap overview button again. Try combination with back and home button
Change-Id: Ib2775a11f5466abc433763f24192e7bfdcf191a2
(cherry picked from commit 455718e8422707c021445205da3b194094fae411)
-rw-r--r-- | quickstep/src/com/android/quickstep/FallbackActivityInterface.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/quickstep/src/com/android/quickstep/FallbackActivityInterface.java b/quickstep/src/com/android/quickstep/FallbackActivityInterface.java index f29d68a72a..7fb8e16063 100644 --- a/quickstep/src/com/android/quickstep/FallbackActivityInterface.java +++ b/quickstep/src/com/android/quickstep/FallbackActivityInterface.java @@ -107,10 +107,9 @@ public final class FallbackActivityInterface extends public RecentsView getVisibleRecentsView() { RecentsActivity activity = getCreatedActivity(); if (activity != null) { - RecentsView recentsView = activity.getOverviewPanel(); - if (activity.hasBeenResumed() || (ENABLE_QUICKSTEP_LIVE_TILE.get() && isInLiveTileMode() - && recentsView.getRunningTaskId() == -1)) { - return recentsView; + if (activity.hasBeenResumed() + || (ENABLE_QUICKSTEP_LIVE_TILE.get() && isInLiveTileMode())) { + return activity.getOverviewPanel(); } } return null; |