mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Ensure taskbar visibility callbacks are called in init()
We're initializing the correct values, but the callback only runs if the value is different than the default value of 0. Thus we weren't updating the visibility according to the value 0 in init(). Test: Initialize taskbar while launcher is resumed Fixes: 180103543 Change-Id: I3f754cac59e2bd5ad542de050e8b4c3146d5eebf
This commit is contained in:
@@ -59,6 +59,9 @@ public class TaskbarVisibilityController {
|
||||
boolean isImeVisible = (SystemUiProxy.INSTANCE.get(mLauncher).getLastSystemUiStateFlags()
|
||||
& QuickStepContract.SYSUI_STATE_IME_SHOWING) != 0;
|
||||
mTaskbarVisibilityAlphaForIme.updateValue(isImeVisible ? 0f : 1f);
|
||||
|
||||
onTaskbarBackgroundAlphaChanged();
|
||||
updateVisibilityAlpha();
|
||||
}
|
||||
|
||||
protected void cleanup() {
|
||||
|
||||
Reference in New Issue
Block a user