Merge "Don't disrupt a11y state when user is unlocked." into nyc-dev

This commit is contained in:
Phil Weaver
2016-05-12 18:00:54 +00:00
committed by Android (Google) Code Review

View File

@@ -902,10 +902,13 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub {
private void unlockUser(int userId) { private void unlockUser(int userId) {
synchronized (mLock) { synchronized (mLock) {
UserState userState = getUserStateLocked(userId); int parentUserId = mSecurityPolicy.resolveProfileParentLocked(userId);
if (parentUserId == mCurrentUserId) {
UserState userState = getUserStateLocked(mCurrentUserId);
onUserStateChangedLocked(userState); onUserStateChangedLocked(userState);
} }
} }
}
private void removeUser(int userId) { private void removeUser(int userId) {
synchronized (mLock) { synchronized (mLock) {