mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 17:36:49 +00:00
Fix bug where unstash animation plays twice.
Fixes: 282056846 Change-Id: I372444684fafd246369f6bc1e77c5e6fbb651c6f Flag: ENABLE_TRANSIENT_TASKBAR Test: open app, then very quickly swipe to unstash taskbar
This commit is contained in:
@@ -17,6 +17,7 @@ package com.android.launcher3.taskbar;
|
||||
|
||||
import static com.android.launcher3.anim.AnimatedFloat.VALUE;
|
||||
|
||||
import android.animation.ObjectAnimator;
|
||||
import android.animation.ValueAnimator;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
@@ -85,6 +86,15 @@ public class TaskbarSpringOnStashController implements LoggableTaskbarController
|
||||
.build(mTranslationForStash, VALUE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an animation to reset the stash translation back to 0 when unstashing.
|
||||
*/
|
||||
public @Nullable ObjectAnimator createResetAnimForUnstash() {
|
||||
if (!mIsTransientTaskbar) {
|
||||
return null;
|
||||
}
|
||||
return mTranslationForStash.animateToValue(0);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void dumpLogs(String prefix, PrintWriter pw) {
|
||||
|
||||
Reference in New Issue
Block a user