Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 455718e8 authored by Alex Chau's avatar Alex Chau
Browse files

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
parent e6935d89
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -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;