Play the nav bar animation for app launch from recent in live tile

Bug: 189278432
Test: manual - launch an app from recent in live tile mode
Change-Id: I9a39cdbbe0b8b9ee6d11a3ee53936d2fea699dd8
This commit is contained in:
shawnlin
2021-06-07 15:58:00 +08:00
parent ca0a3bf723
commit 60b97de72b
3 changed files with 23 additions and 0 deletions
@@ -18,6 +18,7 @@ package com.android.quickstep;
import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;
import static com.android.launcher3.util.Executors.UI_HELPER_EXECUTOR;
import android.view.IRecentsAnimationController;
import android.view.SurfaceControl;
import android.window.PictureInPictureSurfaceTransaction;
@@ -162,6 +163,14 @@ public class RecentsAnimationController {
UI_HELPER_EXECUTOR.execute(() -> mController.detachNavigationBarFromApp(moveHomeToTop));
}
/**
* @see IRecentsAnimationController#animateNavigationBarToApp(long)
*/
@UiThread
public void animateNavigationBarToApp(long duration) {
UI_HELPER_EXECUTOR.execute(() -> mController.animateNavigationBarToApp(duration));
}
/**
* Sets the final surface transaction on a Task. This is used by Launcher to notify the system
* that animating Activity to PiP has completed and the associated task surface should be