+5
−7
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Let toggleable() & Switch share the same MutableInteractionSource. So when user press SwitchPreference, Switch widget will also have press effect. This is also the same behavior of androidx.preference Also follow best practise to use T or () -> T, instead of State<T> param Bug: 306658346 Test: manual - with Gallery Test: unit test Change-Id: Ibda986fbc034b1cb379d9e7c4c26b22fbd0bc905