Merge "Fix NPE when calling updateStateLw"

This commit is contained in:
TreeHugger Robot
2018-12-11 14:17:25 +00:00
committed by Android (Google) Code Review

View File

@@ -219,7 +219,7 @@ public class BarController {
}
private boolean updateStateLw(final int state) {
if (state != mState) {
if (mWin != null && state != mState) {
mState = state;
if (DEBUG) Slog.d(mTag, "mState: " + StatusBarManager.windowStateToString(state));
mHandler.post(new Runnable() {