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. Change-Id: I40edafdab5457666474de2c0368158a9c1c05fb0
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user