Merge "Keyguard: Reapply insets when fitsSystemWindow changes" into nyc-mr1-dev

This commit is contained in:
TreeHugger Robot
2016-07-27 23:42:58 +00:00
committed by Android (Google) Code Review

View File

@@ -168,7 +168,11 @@ public class StatusBarWindowManager implements RemoteInputController.Callback {
}
private void applyFitsSystemWindows(State state) {
mStatusBarView.setFitsSystemWindows(!state.isKeyguardShowingAndNotOccluded());
boolean fitsSystemWindows = !state.isKeyguardShowingAndNotOccluded();
if (mStatusBarView.getFitsSystemWindows() != fitsSystemWindows) {
mStatusBarView.setFitsSystemWindows(fitsSystemWindows);
mStatusBarView.requestApplyInsets();
}
}
private void applyUserActivityTimeout(State state) {