mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Make sure Qr Code fragment doesn't use Static Picture camera device
This commit is contained in:
parent
dee684b364
commit
71b1cf8e7a
1 changed files with 8 additions and 4 deletions
|
|
@ -109,11 +109,15 @@ class QrCodeViewModel
|
|||
}
|
||||
}
|
||||
|
||||
val first = core.videoDevicesList.firstOrNull()
|
||||
if (first != null) {
|
||||
Log.w("$TAG No back facing camera found, using first one available [$first]")
|
||||
coreContext.core.videoDevice = first
|
||||
for (camera in core.videoDevicesList) {
|
||||
if (camera != "StaticImage: Static picture") {
|
||||
Log.w("$TAG No back facing camera found, using first one available [$camera]")
|
||||
coreContext.core.videoDevice = camera
|
||||
return@postOnCoreThread
|
||||
}
|
||||
}
|
||||
|
||||
Log.e("$TAG No camera device found!")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue