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

@ -12,9 +12,6 @@
android:name="android.hardware.location.gps"
android:required="false" />
<!-- per https://github.com/journeyapps/zxing-android-embedded to force support for build 22 -->
<uses-sdk tools:overrideLibrary="com.google.zxing.client.android" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />

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("")