Settings use SwitchPreferenceCompat instead of SwitchPreference in the future, for new Material 3 UI. Also clean up unused fields in its controller. Bug: 306658427 Test: manual - on Notifications page Change-Id: I0c4dd3f088e68852a1f63ed46447c306f7c0f65a
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.