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
2023-12-04 20:17:14 -08:00
parent 4266fa49e2
commit f441fd67d3
2 changed files with 14 additions and 3 deletions
@@ -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;
}