Fix two-panel issue in tablet

Keep the logic same as BlockingPrefWithSliceController.

BUG: 343317785
Test: atest BluetoothDeviceDetailsViewModelTest
Flag: com.android.settings.flags.enable_bluetooth_device_details_polish
Change-Id: I77e62479def433869ae5e93987ec7069cc61173a
This commit is contained in:
Haijie Hong
2024-09-25 13:48:33 +08:00
parent 8be12edf9c
commit 1020e7132d
5 changed files with 24 additions and 15 deletions

View File

@@ -178,11 +178,9 @@ class DeviceDetailsFragmentFormatterTest {
}.launchIn(testScope.backgroundScope)
delay(100)
runCurrent()
helpPreference!!.onClick()
ShadowLooper.idleMainLooper()
val shadowActivity = Shadows.shadowOf(fragmentActivity)
assertThat(shadowActivity.nextStartedActivity).isSameInstanceAs(intent)
assertThat(helpPreference?.intent).isSameInstanceAs(intent)
}
}