[automerge] Update task bar icon alignment logic when launcher is paused and resumed in Overview 2p: d4ed2f7717
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17677036 Bug: 223109070 Change-Id: Ifb4c9b373bacce8f15a125b5b9cf97f20cd3d097
This commit is contained in:
@@ -257,7 +257,10 @@ import java.util.function.Supplier;
|
||||
if (hasAnyFlag(changedFlags, FLAG_RESUMED)
|
||||
|| launcherStateChangedDuringAnimToResumeAlignment) {
|
||||
boolean isResumed = isResumed();
|
||||
float toAlignmentForResumedState = isResumed && goingToUnstashedLauncherState() ? 1 : 0;
|
||||
// If launcher is resumed, we show the icons when going to an unstashed launcher state
|
||||
// or launcher state is not changed (e.g. in overview, launcher is paused and resumed).
|
||||
float toAlignmentForResumedState = isResumed && (goingToUnstashedLauncherState()
|
||||
|| !goingToUnstashedLauncherStateChanged) ? 1 : 0;
|
||||
// If we're already animating to the value, just leave it be instead of restarting it.
|
||||
if (!mIconAlignmentForResumedState.isAnimatingToValue(toAlignmentForResumedState)) {
|
||||
ObjectAnimator resumeAlignAnim = mIconAlignmentForResumedState
|
||||
|
||||
Reference in New Issue
Block a user