[Settings] Link to incorrect SIM after SIM swap
A click to the UI presented on screen should take user to the exact SIM
that clicked instead of the first SIM presented to the end user (and
could no longer available).
Bug: 227273792
Test: local
Change-Id: If5a33f72e5730911af61f20a6a45a40cafb956d0
diff --git a/src/com/android/settings/network/SubscriptionsPreferenceController.java b/src/com/android/settings/network/SubscriptionsPreferenceController.java
index 218e3ec..44ad411 100644
--- a/src/com/android/settings/network/SubscriptionsPreferenceController.java
+++ b/src/com/android/settings/network/SubscriptionsPreferenceController.java
@@ -232,11 +232,11 @@
connectCarrierNetwork();
return true;
});
-
- mSubsGearPref.setOnGearClickListener(p ->
- MobileNetworkUtils.launchMobileNetworkSettings(mContext, subInfo));
}
+ mSubsGearPref.setOnGearClickListener(p ->
+ MobileNetworkUtils.launchMobileNetworkSettings(mContext, subInfo));
+
if (!(mContext.getSystemService(UserManager.class)).isAdminUser()) {
mSubsGearPref.setGearEnabled(false);
}