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

Commit 3642f370 authored by Chienyuan's avatar Chienyuan Committed by android-build-merger
Browse files

Merge "HFP: Check sim state when subscriptions changed"

am: 1ee3443f

Change-Id: I6db9b811f192f906ffb80bf83abde90581666a76
parents 41844ff8 1ee3443f
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -269,6 +269,12 @@ public class HeadsetPhoneState {
        @Override
        public void onSubscriptionsChanged() {
            synchronized (mDeviceEventMap) {
                int simState = mTelephonyManager.getSimState();
                if (simState != TelephonyManager.SIM_STATE_READY) {
                    mCindSignal = 0;
                    mCindService = HeadsetHalConstants.NETWORK_STATE_NOT_AVAILABLE;
                    sendDeviceStateChanged();
                }
                stopListenForPhoneState();
                startListenForPhoneState();
            }