Restricted App list can be update in RestrictedAppDetails page and go back to SmartBatterySettings page without update the App list. We need to update the list in updateState() again. Fixes: 140585454 Test: manual, robolectric Change-Id: I48a197351ffb9b07490f1de7ba1f7417102458a2
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.