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

Commit 289e6497 authored by Svetoslav's avatar Svetoslav Committed by Android (Google) Code Review
Browse files

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

parents 30c990c3 072906ee
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();