Loading quickstep/src/com/android/quickstep/GestureState.java +3 −1 Original line number Original line Diff line number Diff line Loading @@ -309,7 +309,9 @@ public class GestureState implements RecentsAnimationCallbacks.RecentsAnimationL * changes in the WM hierarchy (ie. starting recents transition when you are already over home). * changes in the WM hierarchy (ie. starting recents transition when you are already over home). */ */ public boolean useSyntheticRecentsTransition() { public boolean useSyntheticRecentsTransition() { return mRunningTask.isHomeTask() && Flags.enableFallbackOverviewInWindow(); return mRunningTask.isHomeTask() && (Flags.enableFallbackOverviewInWindow() || Flags.enableLauncherOverviewInWindow()); } } /** /** Loading quickstep/src/com/android/quickstep/OverviewComponentObserver.java +2 −2 Original line number Original line Diff line number Diff line Loading @@ -155,7 +155,7 @@ public final class OverviewComponentObserver { mContainerInterface.onAssistantVisibilityChanged(0.f); mContainerInterface.onAssistantVisibilityChanged(0.f); } } if (SEPARATE_RECENTS_ACTIVITY.get()) { if (SEPARATE_RECENTS_ACTIVITY.get() || Flags.enableLauncherOverviewInWindow()) { mIsDefaultHome = false; mIsDefaultHome = false; if (defaultHome == null) { if (defaultHome == null) { defaultHome = mMyHomeIntent.getComponent(); defaultHome = mMyHomeIntent.getComponent(); Loading @@ -179,7 +179,7 @@ public final class OverviewComponentObserver { } else { } else { // The default home app is a different launcher. Use the fallback Overview instead. // The default home app is a different launcher. Use the fallback Overview instead. if (Flags.enableFallbackOverviewInWindow()) { if (Flags.enableLauncherOverviewInWindow() || Flags.enableFallbackOverviewInWindow()) { mContainerInterface = FallbackWindowInterface.getInstance(); mContainerInterface = FallbackWindowInterface.getInstance(); } else { } else { mContainerInterface = FallbackActivityInterface.INSTANCE; mContainerInterface = FallbackActivityInterface.INSTANCE; Loading quickstep/src/com/android/quickstep/RecentsAnimationCallbacks.java +2 −1 Original line number Original line Diff line number Diff line Loading @@ -109,7 +109,8 @@ public class RecentsAnimationCallbacks implements boolean isOpeningHome = Arrays.stream(appTargets).filter(app -> app.mode == MODE_OPENING boolean isOpeningHome = Arrays.stream(appTargets).filter(app -> app.mode == MODE_OPENING && app.windowConfiguration.getActivityType() == ACTIVITY_TYPE_HOME) && app.windowConfiguration.getActivityType() == ACTIVITY_TYPE_HOME) .count() > 0; .count() > 0; if (appCount == 0 && (!Flags.enableFallbackOverviewInWindow() || isOpeningHome)) { if (appCount == 0 && (!(Flags.enableFallbackOverviewInWindow() || Flags.enableLauncherOverviewInWindow()) || isOpeningHome)) { ActiveGestureProtoLogProxy.logOnRecentsAnimationStartCancelled(); ActiveGestureProtoLogProxy.logOnRecentsAnimationStartCancelled(); // Edge case, if there are no closing app targets, then Launcher has nothing to handle // Edge case, if there are no closing app targets, then Launcher has nothing to handle notifyAnimationCanceled(); notifyAnimationCanceled(); Loading quickstep/src/com/android/quickstep/TaskAnimationManager.java +2 −1 Original line number Original line Diff line number Diff line Loading @@ -295,7 +295,8 @@ public class TaskAnimationManager implements RecentsAnimationCallbacks.RecentsAn // TODO:(b/365777482) if flag is enabled, but on launcher it will crash. // TODO:(b/365777482) if flag is enabled, but on launcher it will crash. if(containerInterface.getCreatedContainer() instanceof RecentsWindowManager if(containerInterface.getCreatedContainer() instanceof RecentsWindowManager && Flags.enableFallbackOverviewInWindow()){ && (Flags.enableFallbackOverviewInWindow() || Flags.enableLauncherOverviewInWindow())) { mRecentsAnimationStartPending = getSystemUiProxy().startRecentsActivity(intent, options, mRecentsAnimationStartPending = getSystemUiProxy().startRecentsActivity(intent, options, mCallbacks, gestureState.useSyntheticRecentsTransition()); mCallbacks, gestureState.useSyntheticRecentsTransition()); mRecentsWindowsManager.startRecentsWindow(mCallbacks); mRecentsWindowsManager.startRecentsWindow(mCallbacks); Loading quickstep/src/com/android/quickstep/TouchInteractionService.java +4 −2 Original line number Original line Diff line number Diff line Loading @@ -675,7 +675,7 @@ public class TouchInteractionService extends Service { mDesktopVisibilityController = new DesktopVisibilityController(this); mDesktopVisibilityController = new DesktopVisibilityController(this); mTaskbarManager = new TaskbarManager( mTaskbarManager = new TaskbarManager( this, mAllAppsActionManager, mNavCallbacks, mDesktopVisibilityController); this, mAllAppsActionManager, mNavCallbacks, mDesktopVisibilityController); if(Flags.enableFallbackOverviewInWindow()) { if (Flags.enableLauncherOverviewInWindow() || Flags.enableFallbackOverviewInWindow()) { mRecentsWindowManager = new RecentsWindowManager(this); mRecentsWindowManager = new RecentsWindowManager(this); } } mInputConsumer = InputConsumerController.getRecentsAnimationInputConsumer(); mInputConsumer = InputConsumerController.getRecentsAnimationInputConsumer(); Loading Loading @@ -1410,8 +1410,10 @@ public class TouchInteractionService extends Service { } } public AbsSwipeUpHandler.Factory getSwipeUpHandlerFactory() { public AbsSwipeUpHandler.Factory getSwipeUpHandlerFactory() { boolean recentsInWindow = Flags.enableFallbackOverviewInWindow() || Flags.enableLauncherOverviewInWindow(); return mOverviewComponentObserver.isHomeAndOverviewSame() return mOverviewComponentObserver.isHomeAndOverviewSame() ? mLauncherSwipeHandlerFactory : (Flags.enableFallbackOverviewInWindow() ? mLauncherSwipeHandlerFactory : (recentsInWindow ? mRecentsWindowSwipeHandlerFactory : mFallbackSwipeHandlerFactory); ? mRecentsWindowSwipeHandlerFactory : mFallbackSwipeHandlerFactory); } } Loading Loading
quickstep/src/com/android/quickstep/GestureState.java +3 −1 Original line number Original line Diff line number Diff line Loading @@ -309,7 +309,9 @@ public class GestureState implements RecentsAnimationCallbacks.RecentsAnimationL * changes in the WM hierarchy (ie. starting recents transition when you are already over home). * changes in the WM hierarchy (ie. starting recents transition when you are already over home). */ */ public boolean useSyntheticRecentsTransition() { public boolean useSyntheticRecentsTransition() { return mRunningTask.isHomeTask() && Flags.enableFallbackOverviewInWindow(); return mRunningTask.isHomeTask() && (Flags.enableFallbackOverviewInWindow() || Flags.enableLauncherOverviewInWindow()); } } /** /** Loading
quickstep/src/com/android/quickstep/OverviewComponentObserver.java +2 −2 Original line number Original line Diff line number Diff line Loading @@ -155,7 +155,7 @@ public final class OverviewComponentObserver { mContainerInterface.onAssistantVisibilityChanged(0.f); mContainerInterface.onAssistantVisibilityChanged(0.f); } } if (SEPARATE_RECENTS_ACTIVITY.get()) { if (SEPARATE_RECENTS_ACTIVITY.get() || Flags.enableLauncherOverviewInWindow()) { mIsDefaultHome = false; mIsDefaultHome = false; if (defaultHome == null) { if (defaultHome == null) { defaultHome = mMyHomeIntent.getComponent(); defaultHome = mMyHomeIntent.getComponent(); Loading @@ -179,7 +179,7 @@ public final class OverviewComponentObserver { } else { } else { // The default home app is a different launcher. Use the fallback Overview instead. // The default home app is a different launcher. Use the fallback Overview instead. if (Flags.enableFallbackOverviewInWindow()) { if (Flags.enableLauncherOverviewInWindow() || Flags.enableFallbackOverviewInWindow()) { mContainerInterface = FallbackWindowInterface.getInstance(); mContainerInterface = FallbackWindowInterface.getInstance(); } else { } else { mContainerInterface = FallbackActivityInterface.INSTANCE; mContainerInterface = FallbackActivityInterface.INSTANCE; Loading
quickstep/src/com/android/quickstep/RecentsAnimationCallbacks.java +2 −1 Original line number Original line Diff line number Diff line Loading @@ -109,7 +109,8 @@ public class RecentsAnimationCallbacks implements boolean isOpeningHome = Arrays.stream(appTargets).filter(app -> app.mode == MODE_OPENING boolean isOpeningHome = Arrays.stream(appTargets).filter(app -> app.mode == MODE_OPENING && app.windowConfiguration.getActivityType() == ACTIVITY_TYPE_HOME) && app.windowConfiguration.getActivityType() == ACTIVITY_TYPE_HOME) .count() > 0; .count() > 0; if (appCount == 0 && (!Flags.enableFallbackOverviewInWindow() || isOpeningHome)) { if (appCount == 0 && (!(Flags.enableFallbackOverviewInWindow() || Flags.enableLauncherOverviewInWindow()) || isOpeningHome)) { ActiveGestureProtoLogProxy.logOnRecentsAnimationStartCancelled(); ActiveGestureProtoLogProxy.logOnRecentsAnimationStartCancelled(); // Edge case, if there are no closing app targets, then Launcher has nothing to handle // Edge case, if there are no closing app targets, then Launcher has nothing to handle notifyAnimationCanceled(); notifyAnimationCanceled(); Loading
quickstep/src/com/android/quickstep/TaskAnimationManager.java +2 −1 Original line number Original line Diff line number Diff line Loading @@ -295,7 +295,8 @@ public class TaskAnimationManager implements RecentsAnimationCallbacks.RecentsAn // TODO:(b/365777482) if flag is enabled, but on launcher it will crash. // TODO:(b/365777482) if flag is enabled, but on launcher it will crash. if(containerInterface.getCreatedContainer() instanceof RecentsWindowManager if(containerInterface.getCreatedContainer() instanceof RecentsWindowManager && Flags.enableFallbackOverviewInWindow()){ && (Flags.enableFallbackOverviewInWindow() || Flags.enableLauncherOverviewInWindow())) { mRecentsAnimationStartPending = getSystemUiProxy().startRecentsActivity(intent, options, mRecentsAnimationStartPending = getSystemUiProxy().startRecentsActivity(intent, options, mCallbacks, gestureState.useSyntheticRecentsTransition()); mCallbacks, gestureState.useSyntheticRecentsTransition()); mRecentsWindowsManager.startRecentsWindow(mCallbacks); mRecentsWindowsManager.startRecentsWindow(mCallbacks); Loading
quickstep/src/com/android/quickstep/TouchInteractionService.java +4 −2 Original line number Original line Diff line number Diff line Loading @@ -675,7 +675,7 @@ public class TouchInteractionService extends Service { mDesktopVisibilityController = new DesktopVisibilityController(this); mDesktopVisibilityController = new DesktopVisibilityController(this); mTaskbarManager = new TaskbarManager( mTaskbarManager = new TaskbarManager( this, mAllAppsActionManager, mNavCallbacks, mDesktopVisibilityController); this, mAllAppsActionManager, mNavCallbacks, mDesktopVisibilityController); if(Flags.enableFallbackOverviewInWindow()) { if (Flags.enableLauncherOverviewInWindow() || Flags.enableFallbackOverviewInWindow()) { mRecentsWindowManager = new RecentsWindowManager(this); mRecentsWindowManager = new RecentsWindowManager(this); } } mInputConsumer = InputConsumerController.getRecentsAnimationInputConsumer(); mInputConsumer = InputConsumerController.getRecentsAnimationInputConsumer(); Loading Loading @@ -1410,8 +1410,10 @@ public class TouchInteractionService extends Service { } } public AbsSwipeUpHandler.Factory getSwipeUpHandlerFactory() { public AbsSwipeUpHandler.Factory getSwipeUpHandlerFactory() { boolean recentsInWindow = Flags.enableFallbackOverviewInWindow() || Flags.enableLauncherOverviewInWindow(); return mOverviewComponentObserver.isHomeAndOverviewSame() return mOverviewComponentObserver.isHomeAndOverviewSame() ? mLauncherSwipeHandlerFactory : (Flags.enableFallbackOverviewInWindow() ? mLauncherSwipeHandlerFactory : (recentsInWindow ? mRecentsWindowSwipeHandlerFactory : mFallbackSwipeHandlerFactory); ? mRecentsWindowSwipeHandlerFactory : mFallbackSwipeHandlerFactory); } } Loading