Commit Graph

4 Commits

Author SHA1 Message Date
Yuri Lin
bbf570eb8b Add a isCheckbox() function to SelectorWithWidgetPreference.
Bug: 197223270
Test: robotest SelectorWithWidgetPreferenceTest
Change-Id: I5f0ec1cdbc73c06e2f366471c9e7a800c9771ecb
2021-09-13 16:32:42 -04:00
Bill Yi
a43fa25bdb Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I5c75b0340a37afec9fbd3c036ddfebab0bb425e3
2021-08-07 01:36:12 +00:00
Bill Yi
fe7e8c5dbe Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I2815811ab4861df2f7e835c5fcd02d550b649c5b
2021-08-04 09:18:05 +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