This cl fixes two kinds of issues. 1) Highlight two different preferences while clicking a search result. 2) Preference only is highlighted one time. For the first problem, we don't allow to reuse view holder in the highlight scenario, and then allow it later. The root cause of second problem is scrolling to target preference needs x milliseconds. Thus, we should wait a few milliseconds, and then start to highlight preference. Test: Test some search results, and see the correct behavior Fix: 186060148 Fix: 186010165 Fix: 187886982 Change-Id: I7df3e34efe39ee386fe9ce91d7d6c52cf390e2e7
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.