am 26750711: Merge "Explicitly specify user for public mode" into lmp-mr1-dev
automerge: 0108d98
* commit '0108d9836971d9f40bf7856d1858ecc4b153e511':
Explicitly specify user for public mode
This commit is contained in:
@@ -3183,6 +3183,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
|
|||||||
public void userSwitched(int newUserId) {
|
public void userSwitched(int newUserId) {
|
||||||
if (MULTIUSER_DEBUG) mNotificationPanelDebugText.setText("USER " + newUserId);
|
if (MULTIUSER_DEBUG) mNotificationPanelDebugText.setText("USER " + newUserId);
|
||||||
animateCollapsePanels();
|
animateCollapsePanels();
|
||||||
|
updatePublicMode();
|
||||||
updateNotifications();
|
updateNotifications();
|
||||||
resetUserSetupObserver();
|
resetUserSetupObserver();
|
||||||
setControllerUsers();
|
setControllerUsers();
|
||||||
@@ -3674,7 +3675,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
|
|||||||
|
|
||||||
private void updatePublicMode() {
|
private void updatePublicMode() {
|
||||||
setLockscreenPublicMode(mStatusBarKeyguardViewManager.isShowing()
|
setLockscreenPublicMode(mStatusBarKeyguardViewManager.isShowing()
|
||||||
&& mStatusBarKeyguardViewManager.isSecure());
|
&& mStatusBarKeyguardViewManager.isSecure(mCurrentUserId));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateKeyguardState(boolean goingToFullShade, boolean fromShadeLocked) {
|
private void updateKeyguardState(boolean goingToFullShade, boolean fromShadeLocked) {
|
||||||
|
|||||||
@@ -426,4 +426,8 @@ public class StatusBarKeyguardViewManager {
|
|||||||
public boolean isGoingToNotificationShade() {
|
public boolean isGoingToNotificationShade() {
|
||||||
return mPhoneStatusBar.isGoingToNotificationShade();
|
return mPhoneStatusBar.isGoingToNotificationShade();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isSecure(int userId) {
|
||||||
|
return mBouncer.isSecure() || mLockPatternUtils.isSecure(userId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user