Fixed build due to @Nullable changes in SDK API
This commit is contained in:
parent
a1d1bc035e
commit
59eb436423
2 changed files with 4 additions and 4 deletions
|
@ -222,7 +222,7 @@ class AudioSettingsViewModel : GenericSettingsViewModel() {
|
|||
if (audioDevice.hasCapability(AudioDevice.Capabilities.CapabilityRecord)) {
|
||||
labels.add(audioDevice.id)
|
||||
values.add(audioDevice)
|
||||
if (audioDevice.id == default.id) {
|
||||
if (audioDevice.id == default?.id) {
|
||||
inputAudioDeviceIndex.value = index
|
||||
}
|
||||
index += 1
|
||||
|
@ -242,7 +242,7 @@ class AudioSettingsViewModel : GenericSettingsViewModel() {
|
|||
if (audioDevice.hasCapability(AudioDevice.Capabilities.CapabilityPlay)) {
|
||||
labels.add(audioDevice.id)
|
||||
values.add(audioDevice)
|
||||
if (audioDevice.id == default.id) {
|
||||
if (audioDevice.id == default?.id) {
|
||||
outputAudioDeviceIndex.value = index
|
||||
}
|
||||
index += 1
|
||||
|
|
|
@ -46,9 +46,9 @@ class AudioRouteUtils {
|
|||
else
|
||||
AudioDevice.Capabilities.CapabilityRecord
|
||||
val preferredDriver = if (output) {
|
||||
coreContext.core.defaultOutputAudioDevice.driverName
|
||||
coreContext.core.defaultOutputAudioDevice?.driverName
|
||||
} else {
|
||||
coreContext.core.defaultInputAudioDevice.driverName
|
||||
coreContext.core.defaultInputAudioDevice?.driverName
|
||||
}
|
||||
|
||||
val extendedAudioDevices = coreContext.core.extendedAudioDevices
|
||||
|
|
Loading…
Reference in a new issue