restartBatteryStatsLoader made a loader existed in fragment. onStart will resume the loader. onResume registers mBatteryBroadcastReceiver will caused the loader activated the second time. We move restartBatteryStatsLoader to onStart can reduce the loader runs only once. Fixes: 140488811 Test: manual Change-Id: I4cac574ea8e9c07c1a9df48a57fb8140d5687b21
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.