Translate the taskbar icons to match nav handle shape.
- We need to reset icon alignment whenever icon layout bound changes. This fixes the issue where we build an icon alignment animator before any of the views are laid out. - Separated animation logic between. createTransientAnimToIsStashed and createAnimToIsStashed * The values still require a bit more tuning but this gets us a lot closer to spec for many of the motion polish. Bug: 267806083 Bug: 246634367 Bug: 246635237 Test: manual Change-Id: Id122134b22ef4e418ce632e4a8137239dc8bb313
This commit is contained in:
@@ -17,7 +17,6 @@ package com.android.launcher3.taskbar;
|
||||
|
||||
import static com.android.launcher3.taskbar.TaskbarStashController.FLAG_IN_APP;
|
||||
import static com.android.launcher3.taskbar.TaskbarStashController.FLAG_IN_STASHED_LAUNCHER_STATE;
|
||||
import static com.android.launcher3.taskbar.TaskbarStashController.TASKBAR_STASH_DURATION;
|
||||
|
||||
import android.animation.Animator;
|
||||
|
||||
@@ -93,7 +92,8 @@ public class FallbackTaskbarUIController extends TaskbarUIController {
|
||||
}
|
||||
|
||||
private void animateToRecentsState(RecentsState toState) {
|
||||
Animator anim = createAnimToRecentsState(toState, TASKBAR_STASH_DURATION);
|
||||
Animator anim = createAnimToRecentsState(toState,
|
||||
mControllers.taskbarStashController.getStashDuration());
|
||||
if (anim != null) {
|
||||
anim.start();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user