Return after finish() when mode data is invalid; start intent before finish() so the transition is animated like going forward. Bug: 332730534 Test: manual Flag: android.app.modes_ui Change-Id: I26522fdf468da7f2fdb8f75ac405d5f808f8828f
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