Merge "Init nav mode in TaskbarActivityContext between fold/unfold" into udc-qpr-dev

This commit is contained in:
Tracy Zhou
2023-08-22 06:48:01 +00:00
committed by Android (Google) Code Review

View File

@@ -306,6 +306,9 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
// Initialize controllers after all are constructed.
mControllers.init(sharedState);
// This may not be necessary and can be reverted once we move towards recreating all
// controllers without re-creating the window
mControllers.rotationButtonController.onNavigationModeChanged(mNavMode.resValue);
updateSysuiStateFlags(sharedState.sysuiStateFlags, true /* fromInit */);
disableNavBarElements(sharedState.disableNavBarDisplayId, sharedState.disableNavBarState1,
sharedState.disableNavBarState2, false /* animate */);