Files
frameworks_base/packages/SettingsLib/MainSwitchPreference
Stanley Wang 03fbfcbd95 Fixe the problem of invalid switch preference.
The source of this problem is that onBindViewHolder is called
after the user add the OnMainSwitchChangeListener. Then
preference gets a new MainSwitchBar in onBindViewHolder and
causes the listener to fail.

Bug: 223325900
Test: Manually test and observe the UI
Change-Id: Icc2e3c774ae1a8cb81b8ec5a16a82405aedc7c1c
2022-04-27 17:24:05 +08:00
..
2022-02-08 03:10:04 +00:00