The dark theme preference should have it's own screen rather than being a dialog. This adds some boilerplate code that will be needed for the illustration as well as converting the current list preference to open a new screen. Test: robotests Bug: 128686189 Change-Id: I5b62276353c0d39ad2ad00d21d2280e76cceb09b
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.