Merge "Fixing Taskbar not initialized properly on recreate" into sc-v2-dev

This commit is contained in:
TreeHugger Robot
2021-06-18 01:34:37 +00:00
committed by Android (Google) Code Review

View File

@@ -90,12 +90,17 @@ public class LauncherTaskbarUIController extends TaskbarUIController {
mHotseatController.init();
mLauncher.setTaskbarUIController(this);
mKeyguardController = taskbarControllers.taskbarKeyguardController;
onLauncherResumedOrPaused(mLauncher.hasBeenResumed());
mIconAlignmentForResumedState.finishAnimation();
onIconAlignmentRatioChanged();
}
@Override
protected void onDestroy() {
mIconAlignmentForResumedState.finishAnimation();
mIconAlignmentForGestureState.finishAnimation();
mHotseatController.cleanup();
setTaskbarViewVisible(true);
mLauncher.getHotseat().setIconsAlpha(1f);