commit | 7fee161cd5d734fdaaa3dadbc985dc40fe4ba52c | [log] [tgz] |
---|---|---|
author | Alex Chau <alexchau@google.com> | Tue Feb 28 12:46:50 2023 +0000 |
committer | Alex Chau <alexchau@google.com> | Tue Feb 28 12:46:50 2023 +0000 |
tree | b9de9dd5d83acae8a901a7769d44ab220c19fcb7 | |
parent | 019f8a640aa81eed7872558cec784f904172bbce [diff] |
Skip updateIconAlphaForHome if Taskbar is already destroyed Bug: 269409332 Test: Switch display with and without Tasxkbar at home and in-app, Taskbar and Hotseat visibility are correct Change-Id: I598f618c336067bf795b77ccdf3b03f420634047
diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarLauncherStateController.java b/quickstep/src/com/android/launcher3/taskbar/TaskbarLauncherStateController.java index 0b86155..b586487 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarLauncherStateController.java +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarLauncherStateController.java
@@ -471,6 +471,7 @@ if (mControllers.taskbarActivityContext.isDestroyed()) { Log.e("b/260135164", "updateIconAlphaForHome is called after Taskbar is destroyed", new Exception()); + return; } mIconAlphaForHome.setValue(alpha); boolean hotseatVisible = alpha == 0