From fb5ae9060dcb2bc562f915c0f3271aaf1cabc960 Mon Sep 17 00:00:00 2001 From: Alex Chau Date: Wed, 28 Jul 2021 17:23:20 +0100 Subject: [PATCH] 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) --- .../com/android/quickstep/FallbackActivityInterface.java | 7 +++---- 1 file 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;