1. Remove it and change it to SwitchPrference 2. Build MobileDataDialogFragment to show dialog when needed 3. Create controller for it to decide when to launch the dialog Bug: 114749736 Test: RunSettingsRoboTests Change-Id: I02b9662c5829e765f2c71d10ed951d792cf7aaa1
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.