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

Commit 1d2aa14a authored by Lei Ju's avatar Lei Ju
Browse files

Only clean the client if no pending intent exist.

Test: Presubmit

Bug: 239188851

Merged-In: I683ad404ffbd25359c795a72cc7620531d037197
Change-Id: If8b4e77182f49f322caf09da6dd7ea0d4aeb7de6
parent 3d8c880d
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) {