Change the source of the saved network preference text from WifiManager to WifiPickerTracker and update it through the WifiPickerTrackerCallback. Bug: 70983952 Test: atest WifiSettings2Test Change-Id: Ia0a61f174a061892cd9376c16402e4983eaaa03c
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.