make device setting be able to use both Intent and PendingIntent
BUG: 343317785 Test: local tested Flag: com.android.settings.flags.enable_bluetooth_device_details_polish Change-Id: I0c370d64bda1479778b55dc97e136ff73223f5d3
This commit is contained in:
@@ -101,7 +101,7 @@ class BluetoothDeviceDetailsViewModel(
|
||||
DeviceSettingStateModel.ActionSwitchPreferenceState(newState)
|
||||
)
|
||||
},
|
||||
intent = intent,
|
||||
action = action,
|
||||
)
|
||||
} else {
|
||||
DeviceSettingPreferenceModel.PlainPreference(
|
||||
@@ -109,7 +109,7 @@ class BluetoothDeviceDetailsViewModel(
|
||||
title = title,
|
||||
summary = summary,
|
||||
icon = icon,
|
||||
intent = intent,
|
||||
action = action,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user