mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 09:56:49 +00:00
Merge "Desktop Mode Taskbar Recreate Animation" into main
This commit is contained in:
@@ -1784,8 +1784,8 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener
|
||||
}
|
||||
|
||||
/** Get animation duration for taskbar for going to home. */
|
||||
public static int getTaskbarToHomeDuration(boolean isPinnedTaskbar) {
|
||||
return getTaskbarToHomeDuration(false, isPinnedTaskbar);
|
||||
public static int getTaskbarToHomeDuration(boolean isPinnedTaskbarAndNotInDesktopMode) {
|
||||
return getTaskbarToHomeDuration(false, isPinnedTaskbarAndNotInDesktopMode);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1794,8 +1794,8 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener
|
||||
* @param shouldOverrideToFastAnimation should overwrite scaling reveal home animation duration
|
||||
*/
|
||||
public static int getTaskbarToHomeDuration(boolean shouldOverrideToFastAnimation,
|
||||
boolean isPinnedTaskbar) {
|
||||
if (isPinnedTaskbar) {
|
||||
boolean isPinnedTaskbarAndNotInDesktopMode) {
|
||||
if (isPinnedTaskbarAndNotInDesktopMode) {
|
||||
return PINNED_TASKBAR_TRANSITION_DURATION;
|
||||
} else if (enableScalingRevealHomeAnimation() && !shouldOverrideToFastAnimation) {
|
||||
return TASKBAR_TO_HOME_DURATION_SLOW;
|
||||
|
||||
Reference in New Issue
Block a user