Attached the navigation bar to app for launching from Launcher
- Play the nav bar fade-out animation at the same time when the app launching animation starts and make the fade-in animation ends at the same time when app launching animation ends. - To make the nav bar fade-in animation looks like it's attached to the app, apply crop rect and translation that the app targets apply to the nav target. Bug: 181638132 Test: manual: click app icon on launcher to launch an activity and observe the navigation bar animation. Change-Id: If7e610eca5fccbb747a76c87335a600b018195a6
This commit is contained in:
@@ -489,7 +489,7 @@ public class TaskView extends FrameLayout implements Reusable {
|
||||
AnimatorSet anim = new AnimatorSet();
|
||||
TaskViewUtils.composeRecentsLaunchAnimator(
|
||||
anim, this, targets.apps,
|
||||
targets.wallpapers, true /* launcherClosing */,
|
||||
targets.wallpapers, targets.nonApps, true /* launcherClosing */,
|
||||
mActivity.getStateManager(), recentsView,
|
||||
recentsView.getDepthController());
|
||||
anim.addListener(new AnimatorListenerAdapter() {
|
||||
|
||||
Reference in New Issue
Block a user