Merge "Fully setup newly bound service before state management." into jb-mr2-dev
This commit is contained in:
@@ -1817,11 +1817,13 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub {
|
|||||||
addServiceLocked(this, userState);
|
addServiceLocked(this, userState);
|
||||||
if (userState.mBindingServices.contains(mComponentName)) {
|
if (userState.mBindingServices.contains(mComponentName)) {
|
||||||
userState.mBindingServices.remove(mComponentName);
|
userState.mBindingServices.remove(mComponentName);
|
||||||
onUserStateChangedLocked(userState);
|
|
||||||
try {
|
try {
|
||||||
mServiceInterface.setConnection(this, mId);
|
mServiceInterface.setConnection(this, mId);
|
||||||
|
onUserStateChangedLocked(userState);
|
||||||
} catch (RemoteException re) {
|
} 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 {
|
} else {
|
||||||
binderDied();
|
binderDied();
|
||||||
|
|||||||
Reference in New Issue
Block a user