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:
Haijie Hong
2024-09-29 20:06:49 +08:00
parent 4e05cd99a9
commit 79f17d1188
3 changed files with 19 additions and 10 deletions

View File

@@ -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,
)
}
}