Merge "Update SUW swipe home logic for taskbar stashing" into 24D1-dev
This commit is contained in:
commit
63da44e7eb
2 files changed
+5
-4
No files matched your search
@@ -1452,7 +1452,8 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
|
|||||||
((LauncherTaskbarUIController) uiController).addLauncherVisibilityChangedAnimation(
|
((LauncherTaskbarUIController) uiController).addLauncherVisibilityChangedAnimation(
|
||||||
fullAnimation, duration);
|
fullAnimation, duration);
|
||||||
}
|
}
|
||||||
mControllers.taskbarStashController.addUnstashToHotseatAnimation(fullAnimation, duration);
|
mControllers.taskbarStashController.addUnstashToHotseatAnimationFromSuw(fullAnimation,
|
||||||
|
duration);
|
||||||
|
|
||||||
View allAppsButton = mControllers.taskbarViewController.getAllAppsButtonView();
|
View allAppsButton = mControllers.taskbarViewController.getAllAppsButtonView();
|
||||||
if (allAppsButton != null && !FeatureFlags.ENABLE_ALL_APPS_BUTTON_IN_HOTSEAT.get()) {
|
if (allAppsButton != null && !FeatureFlags.ENABLE_ALL_APPS_BUTTON_IN_HOTSEAT.get()) {
|
||||||
|
|||||||
@@ -357,7 +357,6 @@ public class TaskbarStashController implements TaskbarControllers.LoggableTaskba
|
|||||||
boolean hideTaskbar = isVisible || !mActivity.isUserSetupComplete();
|
boolean hideTaskbar = isVisible || !mActivity.isUserSetupComplete();
|
||||||
updateStateForFlag(FLAG_IN_SETUP, hideTaskbar);
|
updateStateForFlag(FLAG_IN_SETUP, hideTaskbar);
|
||||||
updateStateForFlag(FLAG_STASHED_IN_APP_SETUP, hideTaskbar);
|
updateStateForFlag(FLAG_STASHED_IN_APP_SETUP, hideTaskbar);
|
||||||
updateStateForFlag(FLAG_STASHED_SMALL_SCREEN, mActivity.isPhoneGestureNavMode());
|
|
||||||
applyState(hideTaskbar ? 0 : getStashDuration());
|
applyState(hideTaskbar ? 0 : getStashDuration());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -549,11 +548,12 @@ public class TaskbarStashController implements TaskbarControllers.LoggableTaskba
|
|||||||
* sub-animations are properly coordinated. This duration should not
|
* sub-animations are properly coordinated. This duration should not
|
||||||
* actually be used since this animation tracks a swipe progress.
|
* actually be used since this animation tracks a swipe progress.
|
||||||
*/
|
*/
|
||||||
protected void addUnstashToHotseatAnimation(AnimatorSet animation, int placeholderDuration) {
|
protected void addUnstashToHotseatAnimationFromSuw(AnimatorSet animation,
|
||||||
|
int placeholderDuration) {
|
||||||
// Defer any UI updates now to avoid the UI becoming stale when the animation plays.
|
// Defer any UI updates now to avoid the UI becoming stale when the animation plays.
|
||||||
mControllers.taskbarViewController.setDeferUpdatesForSUW(true);
|
mControllers.taskbarViewController.setDeferUpdatesForSUW(true);
|
||||||
createAnimToIsStashed(
|
createAnimToIsStashed(
|
||||||
/* isStashed= */ false,
|
/* isStashed= */ mActivity.isPhoneMode(),
|
||||||
placeholderDuration,
|
placeholderDuration,
|
||||||
TRANSITION_UNSTASH_SUW_MANUAL,
|
TRANSITION_UNSTASH_SUW_MANUAL,
|
||||||
/* jankTag= */ "SUW_MANUAL");
|
/* jankTag= */ "SUW_MANUAL");
|
||||||
|
|||||||
Reference in new issue
Block a user