Merge "Unregister receiver when destroying TrustAgentWrapper." into tm-dev

This commit is contained in:
Jacob Hobbie
2022-02-28 21:16:45 +00:00
committed by Android (Google) Code Review

View File

@@ -671,6 +671,7 @@ public class TrustAgentWrapper {
mContext.unbindService(mConnection);
mBound = false;
mContext.unregisterReceiver(mBroadcastReceiver);
mContext.unregisterReceiver(mTrustableDowngradeReceiver);
mTrustAgentService = null;
mSetTrustAgentFeaturesToken = null;
mHandler.sendEmptyMessage(MSG_REVOKE_TRUST);