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

Commit 6f089b87 authored by Svetoslav Ganov's avatar Svetoslav Ganov
Browse files

IAE: Service not registered: com.android.server.AccessibilityManagerService

bug:3331645

1. Let the binder the AccessibilityManagerService has obtained while connecting
   to an accessibility services be garbage collected since when binding we will
   will get in the on #onServiceConnected callback and it can be potentially
   another instance.

Change-Id: I87aa5e5f741e2e54c72d3d0d396ac00eda5aeb5c
parent 9fafe4e0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -685,6 +685,7 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub
         */
        public boolean unbind() {
            if (mService != null) {
                mService = null;
                mContext.unbindService(this);
                mComponentNameToServiceMap.remove(mComponentName);
                mServices.remove(this);