fix IndexOutOfBoundsException in AccessibilityManagerService..manageServicesLocked
https://code.google.com/p/android/issues/detail?id=230754 Test: compile Change-Id: I9152d56445ab1e3320ae7359a47c82edf8fbeed0 Signed-off-by: liangweikang <liangweikang900911@gmail.com>
This commit is contained in:
committed by
weikang liang
parent
4ce798f45f
commit
4606a4ae89
@@ -398,10 +398,12 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub {
|
||||
removeUser(intent.getIntExtra(Intent.EXTRA_USER_HANDLE, 0));
|
||||
} else if (Intent.ACTION_USER_PRESENT.equals(action)) {
|
||||
// We will update when the automation service dies.
|
||||
UserState userState = getCurrentUserStateLocked();
|
||||
if (!userState.isUiAutomationSuppressingOtherServices()) {
|
||||
if (readConfigurationForUserStateLocked(userState)) {
|
||||
onUserStateChangedLocked(userState);
|
||||
synchronized (mLock) {
|
||||
UserState userState = getCurrentUserStateLocked();
|
||||
if (!userState.isUiAutomationSuppressingOtherServices()) {
|
||||
if (readConfigurationForUserStateLocked(userState)) {
|
||||
onUserStateChangedLocked(userState);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (Intent.ACTION_SETTING_RESTORED.equals(action)) {
|
||||
|
||||
Reference in New Issue
Block a user