Unify interaction source in SwitchPreference
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
Loading
Please register or sign in to comment