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

Skip to content
Commit fbb0222a authored by Chaohui Wang's avatar Chaohui Wang
Browse files

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
parent 0e92f892
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment