Merge "Update alpha animation for All Apps / Divider icon." into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
50a7190efa
@@ -17,6 +17,7 @@ package com.android.launcher3.taskbar;
|
||||
|
||||
import static com.android.app.animation.Interpolators.FINAL_FRAME;
|
||||
import static com.android.app.animation.Interpolators.LINEAR;
|
||||
import static com.android.launcher3.Flags.enableScalingRevealHomeAnimation;
|
||||
import static com.android.launcher3.LauncherAnimUtils.SCALE_PROPERTY;
|
||||
import static com.android.launcher3.LauncherAnimUtils.VIEW_ALPHA;
|
||||
import static com.android.launcher3.LauncherAnimUtils.VIEW_TRANSLATE_X;
|
||||
@@ -689,6 +690,12 @@ public class TaskbarViewController implements TaskbarControllers.LoggableTaskbar
|
||||
&& mIsStashed) {
|
||||
// Prevent All Apps icon from appearing when going from hotseat to nav handle.
|
||||
setter.setViewAlpha(child, 0, Interpolators.clampToProgress(LINEAR, 0f, 0f));
|
||||
} else if (enableScalingRevealHomeAnimation()) {
|
||||
// Tighten clamp so that these icons do not linger as the spring settles.
|
||||
setter.setViewAlpha(child, 0,
|
||||
isToHome
|
||||
? Interpolators.clampToProgress(LINEAR, 0f, 0.07f)
|
||||
: Interpolators.clampToProgress(LINEAR, 0.93f, 1f));
|
||||
} else {
|
||||
setter.setViewAlpha(child, 0,
|
||||
isToHome
|
||||
|
||||
Reference in New Issue
Block a user