From 1a654c58dcea6d8ca358e78d852958b457eefe4c Mon Sep 17 00:00:00 2001 From: Jordan Silva Date: Wed, 19 Jun 2024 14:16:08 +0100 Subject: [PATCH] Fix recents button not navigating to Overview This CL prevents returning launcher in getVisibleLauncher method when isHomeVisible is true but Launcher is not started. Bug: 337954957 Bug: 331947116 Flag: EXEMPT bugfix Test: Manual. With 3-button-nav. Open a video from -1 scren (not in Youtube app), press recent button. More instructions in b/337954957#comment26. (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:6a4c142b5b77ccb8c439e29209b6dfd04a4690d0) Merged-In: I40edafdab5457666474de2c0368158a9c1c05fb0 Change-Id: I40edafdab5457666474de2c0368158a9c1c05fb0 --- .../com/android/quickstep/LauncherActivityInterface.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/quickstep/src/com/android/quickstep/LauncherActivityInterface.java b/quickstep/src/com/android/quickstep/LauncherActivityInterface.java index c42882714c..1048ea1b0d 100644 --- a/quickstep/src/com/android/quickstep/LauncherActivityInterface.java +++ b/quickstep/src/com/android/quickstep/LauncherActivityInterface.java @@ -35,7 +35,6 @@ import androidx.annotation.Nullable; import androidx.annotation.UiThread; import com.android.launcher3.DeviceProfile; -import com.android.launcher3.Flags; import com.android.launcher3.Launcher; import com.android.launcher3.LauncherAnimUtils; import com.android.launcher3.LauncherInitListener; @@ -213,10 +212,7 @@ public final class LauncherActivityInterface extends if (launcher.isStarted() && (isInLiveTileMode() || launcher.hasBeenResumed())) { return launcher; } - if (Flags.useActivityOverlay() - && SystemUiProxy.INSTANCE.get(launcher).getHomeVisibilityState().isHomeVisible()) { - return launcher; - } + return null; }