Register transitions for Desktop app launch + minimize animations
In other CLs we pass specific RemoteTransitions to Shell for app launches and unminimize actions. Those CLs cover Launcher actions like the keyboard alt-tab shortcut, or launching an app from Taskbar. This CL covers launches that don't originate from Launcher, e.g. launches through intents. Test: DesktopAppLaunchTransitionManagerTest Bug: 369966416 Flag: com.android.window.flags.enable_desktop_app_launch_transitions Change-Id: I82fd72f870c1e38efe5a8ce533a60f282c10203c
This commit is contained in:
1 parent
8bd76f5b06
commit
39c006e792
4 files changed
+208
No files matched your search
@@ -85,6 +85,7 @@ import com.android.launcher3.EncryptionType;
|
||||
import com.android.launcher3.Flags;
|
||||
import com.android.launcher3.LauncherPrefs;
|
||||
import com.android.launcher3.anim.AnimatedFloat;
|
||||
import com.android.launcher3.desktop.DesktopAppLaunchTransitionManager;
|
||||
import com.android.launcher3.provider.RestoreDbTask;
|
||||
import com.android.launcher3.statehandlers.DesktopVisibilityController;
|
||||
import com.android.launcher3.statemanager.StatefulActivity;
|
||||
@@ -662,6 +663,7 @@ public class TouchInteractionService extends Service {
|
||||
private NavigationMode mGestureStartNavMode = null;
|
||||
|
||||
private DesktopVisibilityController mDesktopVisibilityController;
|
||||
private DesktopAppLaunchTransitionManager mDesktopAppLaunchTransitionManager;
|
||||
|
||||
@Override
|
||||
public void onCreate() {
|
||||
@@ -686,6 +688,9 @@ public class TouchInteractionService extends Service {
|
||||
mDesktopVisibilityController = new DesktopVisibilityController(this);
|
||||
mTaskbarManager = new TaskbarManager(
|
||||
this, mAllAppsActionManager, mNavCallbacks, mDesktopVisibilityController);
|
||||
mDesktopAppLaunchTransitionManager =
|
||||
new DesktopAppLaunchTransitionManager(this, SystemUiProxy.INSTANCE.get(this));
|
||||
mDesktopAppLaunchTransitionManager.registerTransitions();
|
||||
if (Flags.enableLauncherOverviewInWindow() || Flags.enableFallbackOverviewInWindow()) {
|
||||
mRecentsWindowManager = new RecentsWindowManager(this);
|
||||
}
|
||||
@@ -851,6 +856,10 @@ public class TouchInteractionService extends Service {
|
||||
if (mRecentsWindowManager != null) {
|
||||
mRecentsWindowManager.destroy();
|
||||
}
|
||||
if (mDesktopAppLaunchTransitionManager != null) {
|
||||
mDesktopAppLaunchTransitionManager.unregisterTransitions();
|
||||
}
|
||||
mDesktopAppLaunchTransitionManager = null;
|
||||
mDesktopVisibilityController.onDestroy();
|
||||
sConnected = false;
|
||||
|
||||
|
||||
Reference in new issue
Block a user