When a Settings preference item is selected via a settings panel or settings search, the system takes user to its corresponding subsettings activity. There, in the past, the selected preference was highlighted but the a11y focus was set on the back button. This code sets the a11y focus on the selected preference. Bug: b/285512439 Test: atest HighlightablePreferenceGroupAdapterTest Change-Id: I7edc697e2e3870b1822279c115230add14e82df0
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.