Before this CL, we assumed all the apps in this page were restricted and didn't consider that user may uncheck one and rotate the screen. In this CL, when we create checkbox, we will update the state through FAS API to make sure checkbox is up-to-date. Change-Id: I4e89908591f0688b4170806db4b6631bf921f2e9 Fixes: 78161466 Test: RunSettingsRoboTests
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.