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

Commit 303fe103 authored by Stuart Scott's avatar Stuart Scott
Browse files

Bluetooth sub selection

Change-Id: I181d4f8b206a4a46f1ae2305e22277f70eb24e69
parent 0fb17826
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -123,11 +123,10 @@ class HeadsetPhoneState extends BroadcastReceiver{
    private void startListenForPhoneState() {
        if (!mListening && mSlcReady) {

            // SUB selection, use sim1 always
            long[] subs = SubscriptionManager.getSubId(PhoneConstants.SIM_ID_1);
            long subId = SubscriptionManager.getDefaultSubId();

            if (subs != null && subs[0] >= 0) {
                mPhoneStateListener = getPhoneStateListener(subs[0]);
            if (SubscriptionManager.isValidSubId(subId)) {
                mPhoneStateListener = getPhoneStateListener(subId);

                mTelephonyManager.listen(mPhoneStateListener,
                                         PhoneStateListener.LISTEN_SERVICE_STATE |