Log stackstrace if updateIconAlphaForHome is called after Taskbar is destroyed

Bug: 269409332
Test: manual
Change-Id: I0ff4be33b1e621b0e1a837f8211eb70c27368be1
This commit is contained in:
Alex Chau
2023-02-16 18:56:13 +00:00
parent 0a9056502b
commit 9a647d53cb

View File

@@ -454,6 +454,10 @@ import java.util.StringJoiner;
}
private void updateIconAlphaForHome(float alpha) {
if (mControllers.taskbarActivityContext.isDestroyed()) {
Log.e("b/260135164", "updateIconAlphaForHome is called after Taskbar is destroyed",
new Exception());
}
mIconAlphaForHome.setValue(alpha);
boolean hotseatVisible = alpha == 0
|| (!mControllers.uiController.isHotseatIconOnTopWhenAligned()