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

Commit f9dd9338 authored by Svetoslav's avatar Svetoslav Committed by Android Git Automerger
Browse files

am 289e6497: Merge "Fully setup newly bound service before state management." into jb-mr2-dev

* commit '289e6497':
  Fully setup newly bound service before state management.
parents 55b883b0 289e6497
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -1817,11 +1817,13 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub {
                addServiceLocked(this, userState);
                if (userState.mBindingServices.contains(mComponentName)) {
                    userState.mBindingServices.remove(mComponentName);
                    onUserStateChangedLocked(userState);
                    try {
                       mServiceInterface.setConnection(this, mId);
                       onUserStateChangedLocked(userState);
                    } catch (RemoteException re) {
                        Slog.w(LOG_TAG, "Error while setting connection for service: " + service, re);
                        Slog.w(LOG_TAG, "Error while setting connection for service: "
                                + service, re);
                        binderDied();
                    }
                } else {
                    binderDied();