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

This commit is contained in:
Lei Ju
2022-07-26 22:07:44 +00:00
committed by Android (Google) Code Review

View File

@@ -871,10 +871,9 @@ public class ContextHubClientBroker extends IContextHubClient.Stub
if (!mPendingIntentRequest.hasPendingIntent() && mRegistered) {
mClientManager.unregisterClient(mHostEndPointId);
mRegistered = false;
mAppOpsManager.stopWatchingMode(this);
mContextHubProxy.onHostEndpointDisconnected(mHostEndPointId);
}
mAppOpsManager.stopWatchingMode(this);
mContextHubProxy.onHostEndpointDisconnected(mHostEndPointId);
}
private String authStateToString(@ContextHubManager.AuthorizationState int state) {