summaryrefslogtreecommitdiff
path: root/quickstep/src/com/android/launcher3/BaseQuickstepLauncher.java
diff options
context:
space:
mode:
authorTracy Zhou <tracyzhou@google.com>2021-04-19 21:37:08 -0700
committerTracy Zhou <tracyzhou@google.com>2021-05-10 10:20:43 -0700
commitf20a4bd9a93e7d827b8c3db858e4dc1fa9b9d56c (patch)
treeec522a220854ee94451d31620e14f2d1340a9f47 /quickstep/src/com/android/launcher3/BaseQuickstepLauncher.java
parentbcf85de8076144bd54cff1a7db348dda266814b6 (diff)
Finish the recents animation when the phone goes to sleep
Fixes: 169988381 Test: manual Change-Id: I62527ef46009a1417e67637c512b3a2fc005bcd6
Diffstat (limited to 'quickstep/src/com/android/launcher3/BaseQuickstepLauncher.java')
-rw-r--r--quickstep/src/com/android/launcher3/BaseQuickstepLauncher.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/quickstep/src/com/android/launcher3/BaseQuickstepLauncher.java b/quickstep/src/com/android/launcher3/BaseQuickstepLauncher.java
index 2aac877804..6966fb65dd 100644
--- a/quickstep/src/com/android/launcher3/BaseQuickstepLauncher.java
+++ b/quickstep/src/com/android/launcher3/BaseQuickstepLauncher.java
@@ -23,6 +23,7 @@ import static com.android.launcher3.LauncherState.NO_OFFSET;
import static com.android.launcher3.util.DisplayController.CHANGE_ACTIVE_SCREEN;
import static com.android.launcher3.util.Executors.UI_HELPER_EXECUTOR;
import static com.android.quickstep.SysUINavigationMode.Mode.TWO_BUTTONS;
+import static com.android.quickstep.util.NavigationModeFeatureFlag.LIVE_TILE;
import static com.android.systemui.shared.system.ActivityManagerWrapper.CLOSE_SYSTEM_WINDOWS_REASON_HOME_KEY;
import android.animation.AnimatorSet;
@@ -190,6 +191,15 @@ public abstract class BaseQuickstepLauncher extends Launcher
}
@Override
+ protected void onScreenOff() {
+ super.onScreenOff();
+ if (LIVE_TILE.get()) {
+ RecentsView recentsView = getOverviewPanel();
+ recentsView.finishRecentsAnimation(true /* toRecents */, null);
+ }
+ }
+
+ @Override
public void startIntentSenderForResult(IntentSender intent, int requestCode,
Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags, Bundle options) {
if (requestCode != -1) {