[Settings][Back port] configuration for hidding SIM remove UI

Hide SIM remove UI based on configuraion.

Bug: 240515161
Test: test cases and local testing
Change-Id: I866b2dd566ffa9953f2a83aa3dcb32440390898a
This commit is contained in:
Bonian Chen
2022-10-24 02:03:20 +00:00
parent b0f38d29d2
commit a964b09cab
5 changed files with 20 additions and 3 deletions

View File

@@ -239,6 +239,9 @@ public class ResetNetwork extends InstrumentedFragment {
}
private List<SubscriptionInfo> getActiveSubscriptionInfoList() {
if (!SubscriptionUtil.isSimHardwareVisible(getActivity())) {
return Collections.emptyList();
}
SubscriptionManager mgr = getActivity().getSystemService(SubscriptionManager.class);
if (mgr == null) {
Log.w(TAG, "No SubscriptionManager");