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

Commit 4f375f85 authored by Lei Ju's avatar Lei Ju Committed by Android (Google) Code Review
Browse files

Merge "Only clean the client if no pending intent exist." into tm-qpr-dev

parents 2ff2a64c 1d2aa14a
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -871,11 +871,10 @@ public class ContextHubClientBroker extends IContextHubClient.Stub
        if (!mPendingIntentRequest.hasPendingIntent() && mRegistered) {
            mClientManager.unregisterClient(mHostEndPointId);
            mRegistered = false;
        }
            mAppOpsManager.stopWatchingMode(this);

            mContextHubProxy.onHostEndpointDisconnected(mHostEndPointId);
        }
    }

    private String authStateToString(@ContextHubManager.AuthorizationState int state) {
        switch (state) {