From 04309940c09f04dcf9b60348d6bc94cd85fbc0f7 Mon Sep 17 00:00:00 2001 From: Alex Chau Date: Tue, 16 Nov 2021 18:45:39 +0000 Subject: [PATCH] If hometask is last task to be dismissed, show empty recents instead of home screen - http://ag/16221737 ensure homescren stub is always added if tasks hasn't been loaded in RecentsView. This introduced an edge case that after dismissing home task view, no task remains in overview and it get dismissed - The fix is to show empty recents instead of home screen if last task dismissed is a home task (showing empty recents isn't always correct, as there might be unloaded tasks, but it's better than dismissing overview) - Also tuned the timing of when mLoadPlanEverApplied is set Fix: 206462357 Test: FallbackRecentsTest.goToOverviewFromHome Change-Id: I0f395639f57a1a57fddf750623a8a74b8ede8555 --- .../src/com/android/quickstep/views/RecentsView.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index 92f1a67aa6..0188962da9 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -1335,6 +1335,7 @@ public abstract class RecentsView