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

Commit e084d533 authored by SongFerng Wang's avatar SongFerng Wang Committed by Android (Google) Code Review
Browse files

Merge "The label can't be updated after user changed it" into main

parents a2451148 78b59f34
Loading
Loading
Loading
Loading
+15 −15
Original line number Diff line number Diff line
@@ -113,7 +113,7 @@ internal class RestrictedSwitchPreferenceModel(
            content: @Composable (SwitchPreferenceModel) -> Unit,
        ) {
            val context = LocalContext.current
            val restrictedSwitchPreferenceModel = remember(restrictedMode) {
            val restrictedSwitchPreferenceModel = remember(restrictedMode, model.title) {
                RestrictedSwitchPreferenceModel(context, model, restrictedMode)
            }
            restrictedSwitchPreferenceModel.RestrictionWrapper {