Merge "Fix broken statusbar disable flags" into nyc-dev

This commit is contained in:
TreeHugger Robot
2016-04-16 00:53:20 +00:00
committed by Android (Google) Code Review
2 changed files with 5 additions and 3 deletions

View File

@@ -7465,9 +7465,10 @@ public class PhoneWindowManager implements WindowManagerPolicy {
if (mKeyguardDelegate != null) {
mKeyguardDelegate.setCurrentUser(newUserId);
}
if (mStatusBarService != null) {
IStatusBarService statusBar = getStatusBarService();
if (statusBar != null) {
try {
mStatusBarService.setCurrentUser(newUserId);
statusBar.setCurrentUser(newUserId);
} catch (RemoteException e) {
// oh well
}

View File

@@ -68,7 +68,7 @@ public class StatusBarManagerService extends IStatusBarService.Stub {
private int mDisabled1 = 0;
private int mDisabled2 = 0;
private Object mLock = new Object();
private final Object mLock = new Object();
// encompasses lights-out mode and other flags defined on View
private int mSystemUiVisibility = 0;
private int mFullscreenStackSysUiVisibility;
@@ -926,6 +926,7 @@ public class StatusBarManagerService extends IStatusBarService.Stub {
+ " pkg=" + tok.pkg
+ " token=" + tok.token);
}
pw.println(" mCurrentUserId=" + mCurrentUserId);
}
}
}