After we switch secutiry from EAP to WPA, add button will become disabled forever. Main reason is that we use view visibility to decide which security type it is. In this case target view is visible while its parent view is gone. So even though UI shows correctly however we still think it is in EAP mode. This CL check the mAccessPointSecurity directly instead of depending on fragile view. Fixes: 114689178 Test: RunSettingsRoboTests Change-Id: I4284d25e6bf86ee7c5e7c0e17f0834c719d8d587
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.