SettingsActivity now calls finishAndRemoveTask instead of only finish() to prevent blank recent task from showing in overview. Test: Visually inspected bug doesn't exist. Wrote Roboelectric tests Fixes: 129733119 Change-Id: I5b73c1b611e6eb52bb6665c215276efdc85c19b2
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.