half of the Camera is not visible
tolgatasci opened this issue · comments
I had error like this
My config
scan_yer.launch(ScannerConfig.build {
setBarcodeFormats(listOf(io.github.g00fy2.quickie.config.BarcodeFormat.FORMAT_QR_CODE)) // set interested barcode formats
setOverlayStringRes(R.string.qr_tara) // string resource used for the scanner overlay
setOverlayDrawableRes(R.drawable.ic_baseline_place_24_red) // drawable resource used for the scanner overlay
setHapticSuccessFeedback(false) // enable (default) or disable haptic feedback when a barcode was detected
setShowTorchToggle(false) // show or hide (default) torch/flashlight toggle button
setShowCloseButton(false) // show or hide (default) close button
setHorizontalFrameRatio(1.2f) // set the horizontal overlay ratio (default is 1 / square frame)
setUseFrontCamera(false) // use the front camera
setKeepScreenOn(true)
})
Hi, thanks for reporting your issue.
Could you check if this error also happens when you run the sample APKs in the github releases?
Which device are you testing on? I have not added any custom logic regarding camera usage. This is all handled by CameraX. Please check if their sample app is working for you: https://github.com/android/camera-samples/tree/master/CameraXBasic
If not then this is probably an issue of CameraX and you would have to report it to Google.
Also there is a list of known issues of CameraX: https://issuetracker.google.com/hotlists/1551123?hl=ja
plugins {
id 'com.android.application' version '8.5.0' apply false
id 'com.android.library' version '8.5.0' apply false
id 'org.jetbrains.kotlin.android' version '1.9.0' apply false
}
compileSdk 34
dataBinding {
enabled = true
}
defaultConfig {
minSdk 26
targetSdk 34
versionCode 12
versionName "2.2"
multiDexEnabled = true
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}
Testing phone
I think it's this issue from CameraX: https://issuetracker.google.com/issues/327252893
Will therefore close this ticket here, since I will always make sure to update to latest CameraX regularly.