commit | 54291ec724c50f8555d130372be1fe9fdb192ba7 | [log] [tgz] |
---|---|---|
author | Tony Wickham <twickham@google.com> | Sat Apr 23 01:17:04 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Sat Apr 23 01:17:04 2022 +0000 |
tree | 8bd637ae6ace69d83fe657f7f5be9a541c6f31c1 | |
parent | 6bd2704e8b9b7f631f00b51808f4b10c163f3e14 [diff] | |
parent | aed0c4d73e19b7dca199f9ae7856e8ed89102b70 [diff] |
Defer onIsStashedChanged() until all controllers are initialized am: aed0c4d73e Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/17921731 Change-Id: I6690774f541eaedb7c5d0d8436e618cfb3af791d Ignore-AOSP-First: this is an automerge Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarStashController.java b/quickstep/src/com/android/launcher3/taskbar/TaskbarStashController.java index f1a226f..f34759d 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarStashController.java +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarStashController.java
@@ -502,8 +502,10 @@ } private void onIsStashedChanged(boolean isStashed) { - mControllers.stashedHandleViewController.onIsStashedChanged(isStashed); - mControllers.taskbarInsetsController.onTaskbarWindowHeightOrInsetsChanged(); + mControllers.runAfterInit(() -> { + mControllers.stashedHandleViewController.onIsStashedChanged(isStashed); + mControllers.taskbarInsetsController.onTaskbarWindowHeightOrInsetsChanged(); + }); } public void applyState() {