downgrade zxing:core for minSdkVersion 21

This commit is contained in:
andrekir
2022-01-10 00:33:26 -03:00
parent 58136c9cf4
commit e8e389930e
3 changed files with 4 additions and 6 deletions

View File

@@ -211,6 +211,7 @@ class ChannelFragment : ScreenFragment("Channel"), Logging {
binding.scanButton.setOnClickListener {
if ((requireActivity() as MainActivity).hasCameraPermission()) {
debug("Starting QR code scanner")
val zxingScan = IntentIntegrator.forSupportFragment(this)
zxingScan.setCameraId(0)
zxingScan.setPrompt("")