Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 69416ed7 authored by songferngwang's avatar songferngwang Committed by Android Build Coastguard Worker
Browse files

Can't disable the sim when there are two sims which names are the same.

If the preferences are the same name, the UI did not
change the RestrictedSwitchPreferenceModel after the input SwitchPreferenceModel was changed.

Bug: 349571345
Test: verify the UI
Flag: EXEMPT bugfix
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b8210fc444c3f7b788bec2c201e6a4e6c716cac8)
Merged-In: If1821bdd402795ad902143ed46ac7d458ce9a1aa
Change-Id: If1821bdd402795ad902143ed46ac7d458ce9a1aa
parent f8ddb8f2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -115,7 +115,7 @@ internal class RestrictedSwitchPreferenceModel(
            content: @Composable (SwitchPreferenceModel) -> Unit,
        ) {
            val context = LocalContext.current
            val restrictedSwitchPreferenceModel = remember(restrictedMode, model.title) {
            val restrictedSwitchPreferenceModel = remember(restrictedMode, model) {
                RestrictedSwitchPreferenceModel(context, model, restrictedMode)
            }
            restrictedSwitchPreferenceModel.RestrictionWrapper {