You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (isFlashOn) {
mCodeScanner!!.isFlashEnabled = false
isFlashOn = false
Toast.makeText(getActivity(), "False", Toast.LENGTH_LONG).show();
} else {
mCodeScanner!!.isFlashEnabled = true
isFlashOn = true
Toast.makeText(getActivity(), "True", Toast.LENGTH_LONG).show();
}
The above code makes no sense for turning flash light on/off
Which library version are you using? E.g. 3.2.0.
Library version: 3.2.1'
Which phone/tablet are you using, and which Android version does it run? (e.g. Samsung Galaxy S5,
Android 5.0)
I am using Redmi 9 with Android version 11
Does the same happen on other devices or an emulator?
Works fine on Android 10 and Android 6 I checked on these two.
Can you reproduce the issue in the sample project included with the library? If not, can you
provide your own sample project or sample code that produces this error?
Provided above in the problem description
In the case of an error do you have a stack trace or adb logs?
The text was updated successfully, but these errors were encountered:
I am also faced the same issue i copied all code from this repository and created the new library with small change where flash light button is integrated in Barcodeview layout
you can use from here repo
Description of the problem:
if (isFlashOn) {
mCodeScanner!!.isFlashEnabled = false
isFlashOn = false
Toast.makeText(getActivity(), "False", Toast.LENGTH_LONG).show();
} else {
mCodeScanner!!.isFlashEnabled = true
isFlashOn = true
Toast.makeText(getActivity(), "True", Toast.LENGTH_LONG).show();
}
The above code makes no sense for turning flash light on/off
Which library version are you using? E.g. 3.2.0.
Library version: 3.2.1'
Which phone/tablet are you using, and which Android version does it run? (e.g. Samsung Galaxy S5,
Android 5.0)
I am using Redmi 9 with Android version 11
Does the same happen on other devices or an emulator?
Works fine on Android 10 and Android 6 I checked on these two.
Can you reproduce the issue in the sample project included with the library? If not, can you
provide your own sample project or sample code that produces this error?
Provided above in the problem description
In the case of an error do you have a stack trace or adb logs?
The text was updated successfully, but these errors were encountered: