Keep the logic same as BlockingPrefWithSliceController. BUG: 343317785 Test: atest BluetoothDeviceDetailsViewModelTest Flag: com.android.settings.flags.enable_bluetooth_device_details_polish Change-Id: I77e62479def433869ae5e93987ec7069cc61173a
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