Make sure the task bar stays unstashed upon configuration change

So we recreate task bars when configuration is changed, if ENABLE_TASKBAR_NAVBAR_UNIFICATION = true. In order for unstashed state to propagate, we need to save STASHED_IN_APP_AUTO in TaskbarSharedState.

Fixes: 311429718
Test: Unstash the task bar in app, rotate, make sure the task bar stays unstashed
Change-Id: I7db773725ea89976612e9e91af5b6911d0ec5fc0
This commit is contained in:
Tracy Zhou committed 2023-12-12 19:33:42 -08:00
1 parent 4266fa49e2
commit f441fd67d3
2 files changed
+14 -3

No files matched your search

@@ -86,4 +86,8 @@ public class TaskbarSharedState {
public void setTaskbarWasPinned(boolean taskbarWasPinned) {
mTaskbarWasPinned = taskbarWasPinned;
}
// To track if taskbar was stashed / unstashed between configuration changes (which recreates
// the task bar).
public Boolean taskbarWasStashedAuto = true;
}