For better null safe. Also add unit tests. Fix: 290698845 Fix: 290684887 Test: unit test Test: manual - on Mobile Settings page Change-Id: I9c9edb9b7cbf7d688a885e5c36b61bd6dc526add
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.