Merge "Desktop Mode Taskbar Recreate Animation" into main
This commit is contained in:
commit
269fb15e97
19 files changed
+458
-86
No files matched your search
@@ -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