On the mobile network details page, as well as in several preference controllers used in various page, we had listeners for the ACTION_RADIO_TECHNOLOGY_CHANGED broadcast that when fired would cause a reload. It turns out that this gets broadcast as a sticky intent, so our callbaks would fire just after registering to listen, resulting in lots of unnecessary extra reloading. This was particularly noticable on the mobile network details page because the entire page gets reloaded. The fix is to make our listeners ignore the broadcast if it's the initial sticky one. Bug: 126419558 Test: make RunSettingsRoboTests Change-Id: I6ab7b43d74b07a839e45ce5368e45809be658b9d
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.