mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 08:56:55 +00:00
Restore proper nav buttons translation when taskbar is recreated
Since mTaskbarInAppDisplayProgressMultiProp is set by various states that are hard to query in init() (e.g. state of all apps, -1, widgets, etc.), we store the last mTaskbarInAppDisplayProgressMultiProp in the TaskbarSharedState and restore those values in init(). Also updated some debug logs in the dump. Test: manual: from home screen, swipe down to quick settings and toggle Dark theme, ensure nav buttons don't translate; do the same but over launcher all apps Flag: none Fixes: 267325761 Change-Id: Ib8e6778582ed39c674cd3c1e95312e673659f6a7
This commit is contained in:
@@ -15,6 +15,8 @@
|
||||
*/
|
||||
package com.android.launcher3.taskbar;
|
||||
|
||||
import static com.android.launcher3.taskbar.LauncherTaskbarUIController.DISPLAY_PROGRESS_COUNT;
|
||||
|
||||
/**
|
||||
* State shared across different taskbar instance
|
||||
*/
|
||||
@@ -38,4 +40,7 @@ public class TaskbarSharedState {
|
||||
public boolean setupUIVisible = false;
|
||||
|
||||
public boolean allAppsVisible = false;
|
||||
|
||||
// LauncherTaskbarUIController#mTaskbarInAppDisplayProgressMultiProp
|
||||
public float[] inAppDisplayProgressMultiPropValues = new float[DISPLAY_PROGRESS_COUNT];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user