From deec62378c7e3518d1b8a727880b9c68efafae09 Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Thu, 17 Jun 2021 15:18:15 -0700 Subject: [PATCH] Fixing Taskbar not initialized properly on recreate Bug: 187353581 Test: Manual Change-Id: I6e675937a033a4edcb4fa4e8151c210e14e8f896 --- .../launcher3/taskbar/LauncherTaskbarUIController.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/quickstep/src/com/android/launcher3/taskbar/LauncherTaskbarUIController.java b/quickstep/src/com/android/launcher3/taskbar/LauncherTaskbarUIController.java index 255ba1e054..7d0afe1aba 100644 --- a/quickstep/src/com/android/launcher3/taskbar/LauncherTaskbarUIController.java +++ b/quickstep/src/com/android/launcher3/taskbar/LauncherTaskbarUIController.java @@ -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);