Assign new single layout to RadioButtonPreference for w/ or w/o icon and call setIconSpaceReserved(false) in RadioButtonPreference's constructor. In case of having icon, calling setIcon() can make icon_frame visible. Bug: 70850017 Test: m -j56 SettingsRoboTests RunSettingsRoboTests Change-Id: I8b35f75b6d8114a5e4c69ec1a3287c55e764ffe0
Running Settings Robolectric tests
The full suite
$ croot
$ make RunSettingsRoboTests
Running a single test class
$ croot
$ make RunSettingsRoboTests ROBOTEST_FILTER=<ClassName>
For example:
make RunSettingsRoboTests ROBOTEST_FILTER=CodeInspectionTest
You can also use partial class name in ROBOTEST_FILTER. If the partial class name matches multiple file names, all of them will be executed.