[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
This commit is contained in:
Bonian Chen
2022-04-27 08:55:45 +08:00
parent a72b9398fb
commit 4e32727c01

View File

@@ -232,11 +232,11 @@ public class SubscriptionsPreferenceController extends AbstractPreferenceControl
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);
}