Loading
Update requested state by comparing with source consumer
If the local state and mLastDispatchedState are the same, the logic in onStateChanged will skip updating the requested state. This could be an issue, for example, a new focused window requested to hide status bar, but status bar has already been hidden by the previous focused window, so the new focused window will never send the requested state to server. This can easily happen when an immersive activity is re-created due to the configuration change. This CL updates the requested state if any visibility within it is not the same as the requested visibility of the source consumer, while receiving controls. Fix: 160854328 Test: atest InsetsControllerTest Test: Swipe to show transient bars after rotating an immersive activity Change-Id: I5d9acb1b59252fa80e66070db86b2555764588da