Merge "Don\'t disrupt a11y state when user is unlocked." into nyc-dev
am: 18e9f13b24
* commit '18e9f13b24867fb4a41391c5512376db413449a8':
Don't disrupt a11y state when user is unlocked.
Change-Id: I03a057fb4278466250395958252a349d4dfe2e3c
This commit is contained in:
@@ -902,8 +902,11 @@ 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);
|
||||||
onUserStateChangedLocked(userState);
|
if (parentUserId == mCurrentUserId) {
|
||||||
|
UserState userState = getUserStateLocked(mCurrentUserId);
|
||||||
|
onUserStateChangedLocked(userState);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user