Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4606a4ae authored by liangweikang's avatar liangweikang Committed by weikang liang
Browse files

fix IndexOutOfBoundsException in AccessibilityManagerService..manageServicesLocked

https://code.google.com/p/android/issues/detail?id=230754



Test: compile

Change-Id: I9152d56445ab1e3320ae7359a47c82edf8fbeed0
Signed-off-by: default avatarliangweikang <liangweikang900911@gmail.com>
parent 4ce798f4
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -398,12 +398,14 @@ 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.
                    synchronized (mLock) {
                        UserState userState = getCurrentUserStateLocked();
                        if (!userState.isUiAutomationSuppressingOtherServices()) {
                            if (readConfigurationForUserStateLocked(userState)) {
                                onUserStateChangedLocked(userState);
                            }
                        }
                    }
                } else if (Intent.ACTION_SETTING_RESTORED.equals(action)) {
                    final String which = intent.getStringExtra(Intent.EXTRA_SETTING_NAME);
                    if (Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES.equals(which)) {