commit | fbb0222a8bbcc5ef501f154454f22cebef7d6c1d | [log] [tgz] |
---|---|---|
author | Chaohui Wang <[email protected]> | Sat Oct 28 23:56:05 2023 +0800 |
committer | Chaohui Wang <[email protected]> | Mon Oct 30 01:15:51 2023 +0000 |
tree | 9f7aa69509a45668ba7688e0b0f53da6960549e0 | |
parent | 0e92f892cb6cfbbd85b3ab62982c193e8dca67a1 [diff] |
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