[Settings] 1. Show default subId SIM page if get an intent with invalid

subId 2. Fix the hotswap UI issue

Bug: 271635200
Bug: 271347499
Test: local test
Change-Id: Iac61a211fce7bcd85da48cb291f46584cf43f5c5
This commit is contained in:
Zoey Chen
2023-03-10 04:43:17 +00:00
parent 3a4c6feb0a
commit 63978e7e52
5 changed files with 64 additions and 39 deletions

View File

@@ -114,15 +114,12 @@ public class ConvertToEsimPreferenceController extends TelephonyBasePreferenceCo
@Override
public void onActiveSubInfoChanged(List<SubscriptionInfoEntity> subInfoEntityList) {
// TODO(b/262195754): Need the intent to enabled the feature.
// if (DataServiceUtils.shouldUpdateEntityList(mSubscriptionInfoEntityList,
// subInfoEntityList)) {
// mSubscriptionInfoEntityList = subInfoEntityList;
// mSubscriptionInfoEntityList.forEach(entity -> {
// if (Integer.parseInt(entity.subId) == mSubId) {
// mSubscriptionInfoEntity = entity;
// update();
// }
// });
// }
// mSubscriptionInfoEntityList = subInfoEntityList;
// mSubscriptionInfoEntityList.forEach(entity -> {
// if (Integer.parseInt(entity.subId) == mSubId) {
// mSubscriptionInfoEntity = entity;
// update();
// }
// });
}
}