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:
@@ -101,7 +101,7 @@ class BluetoothDeviceDetailsViewModel(
|
||||
DeviceSettingStateModel.ActionSwitchPreferenceState(newState)
|
||||
)
|
||||
},
|
||||
onPrimaryClick = { intent?.let { application.startActivity(it) } },
|
||||
intent = intent,
|
||||
)
|
||||
} else {
|
||||
DeviceSettingPreferenceModel.PlainPreference(
|
||||
@@ -109,7 +109,7 @@ class BluetoothDeviceDetailsViewModel(
|
||||
title = title,
|
||||
summary = summary,
|
||||
icon = icon,
|
||||
onClick = { intent?.let { application.startActivity(it) } },
|
||||
intent = intent,
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -119,7 +119,7 @@ class BluetoothDeviceDetailsViewModel(
|
||||
DeviceSettingPreferenceModel.HelpPreference(
|
||||
id = id,
|
||||
icon = DeviceSettingIcon.ResourceIcon(R.drawable.ic_help),
|
||||
onClick = { application.startActivity(intent) },
|
||||
intent = intent,
|
||||
)
|
||||
is DeviceSettingModel.MultiTogglePreference ->
|
||||
DeviceSettingPreferenceModel.MultiTogglePreference(
|
||||
|
Reference in New Issue
Block a user