Merge "Don\'t disrupt a11y state when user is unlocked." into nyc-dev am: 18e9f13b24 am: 14a9987d99
am: a6f2153953
* commit 'a6f2153953876e6b16a0285bde4f35c5e40ceaea':
Don't disrupt a11y state when user is unlocked.
Change-Id: Id741cc938e24c534f52f9f1ff92045fb08dec3f3
This commit is contained in:
@@ -902,8 +902,11 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub {
|
||||
|
||||
private void unlockUser(int userId) {
|
||||
synchronized (mLock) {
|
||||
UserState userState = getUserStateLocked(userId);
|
||||
onUserStateChangedLocked(userState);
|
||||
int parentUserId = mSecurityPolicy.resolveProfileParentLocked(userId);
|
||||
if (parentUserId == mCurrentUserId) {
|
||||
UserState userState = getUserStateLocked(mCurrentUserId);
|
||||
onUserStateChangedLocked(userState);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user