Fix a crash on home with autostashed taskbar
Check whether autostash is disabled after init due to dependency on destkop mode controller when taskbar is shown on home with enable_desktop_taskbar_on_freeform_displays flag disabled. Bug: 419824639 Test: see repro steps in the linked bug Flag: EXEMPT bugfix Change-Id: I53a1f00cef705f291c5e79c32d6508c5d832d45e
This commit is contained in:
@@ -376,11 +376,14 @@ public class TaskbarStashController implements TaskbarControllers.LoggableTaskba
|
||||
|
||||
mTaskbarBackgroundAlphaForStash.setValue(shouldHideTaskbarBackground ? 0 : 1);
|
||||
|
||||
// if taskbar should auto stash attempt to start timeout.
|
||||
if (shouldAllowTaskbarToAutoStash()) {
|
||||
tryStartTaskbarTimeout();
|
||||
}
|
||||
notifyStashChange(/* visible */ false, /* stashed */ isStashedInApp());
|
||||
|
||||
mControllers.runAfterInit(() -> {
|
||||
// if taskbar should auto stash attempt to start timeout.
|
||||
if (shouldAllowTaskbarToAutoStash()) {
|
||||
tryStartTaskbarTimeout();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user