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

Commit 8b0ff8dc authored by Jordan Liu's avatar Jordan Liu
Browse files

Allow radio info on phones with no subscription

Some info is still helpful for debugging in these cases.

Bug: 139074613
Test: manual
Change-Id: Idbde691c60b53e0ab755df229a3a9dc77406934d
parent b46650a1
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -1619,13 +1619,14 @@ public class RadioInfo extends Activity {
                    return;
                }
                // getSubId says it takes a slotIndex, but it actually takes a phone index
                int subId = SubscriptionManager.INVALID_SUBSCRIPTION_ID;
                int[] subIds = SubscriptionManager.getSubId(phoneIndex);
                if (subIds == null || subIds.length < 1) {
                    return;
                if (subIds != null && subIds.length > 0) {
                    subId = subIds[0];
                }
                mSelectedPhoneIndex = phoneIndex;

                updatePhoneIndex(phoneIndex, subIds[0]);
                updatePhoneIndex(phoneIndex, subId);
            }
        }