The state of the preference doesn't change until after we get the callback. Test: ZenModePrioritySendersPreferenceControllerTest Flag: android.app.modes_ui Fixes: 337079247 Change-Id: I1c98561de89e9398f26300bb14710f18991f78f4
Running Settings Robolectric tests
The full suite
$ croot
$ atest SettingsRoboTests
Running a single test class
With a filter
$ croot
$ atest SettingsRoboTests:com.android.settings.display.AdaptiveSleepPreferenceControllerTest
You can also run any single test class with atest (it will try to find the correct path)
$ atest AdaptiveSleepPreferenceControllerTest