Merge "DO NOT MERGE - Merge pie-platform-release (PPRL.190801.002) into master"
diff --git a/src/com/android/settings/RadioInfo.java b/src/com/android/settings/RadioInfo.java
index 099b55d..3c10b8d 100644
--- a/src/com/android/settings/RadioInfo.java
+++ b/src/com/android/settings/RadioInfo.java
@@ -1588,14 +1588,14 @@
}
log("switching to phone " + phoneIndex);
// 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) {
- log("no subscription found for phoneIndex " + phoneIndex);
- return;
+ if (subIds != null && subIds.length > 0) {
+ subId = subIds[0];
}
mSelectedPhoneIndex = phoneIndex;
- updatePhoneIndex(phoneIndex, subIds[0]);
+ updatePhoneIndex(phoneIndex, subId);
}
}