Commit Graph

2 Commits

Author SHA1 Message Date
Shubhi
dabdb9547d Enable Media Provider to use sub libraries in SettingsLib
Enable Media Provider to use SettingsLibProfileSelector and
SettingsLibSelectorWithWidgetPreference sub libraries directly by
allow listing Media Provider's apex.

Test: m SettingsLib
Test: Build Media Provider
Bug: 195009187
Change-Id: I8ef91668b4d882e4d50d16c8721874315bf91da6
2022-11-01 08:57:04 +00:00
Yuri Lin
1516c28737 Rename RadioButtonPreference to SelectorWithWidgetPreference, and add a checkbox styling option.
This rename makes it slightly less confusing to have both radio and checkbox display options. Functionally, this preference was already equivalent to a checkbox (with checking/unchecking functionality managed by the caller); the reason to use this class for settings checkboxes rather than the base CheckBoxPreference is for the added widget functionality.

This change leaves RadioButtonPreference as-is to make it easier to bring google3 uses in without having to be in lockstep, but RadioButtonPreference will be deleted in a future CL.

Test: SelectorWithWidgetPreferenceTest, RunSettingsLibRoboTests
Bug: 190180868

Change-Id: I0811997b4625f1292b1842ea353a90221159bb50
2021-07-26 15:31:49 -04:00