mirror of
https://github.com/markusfisch/BinaryEye.git
synced 2024-09-20 03:52:16 +02:00
Fix setting error correction level for QR Codes
ZXing C++ expects the error correction level to be in a range from 0 to 8, so the four possible values for QR codes need to be translated into this range.
This commit is contained in:
parent
0ae7d080e3
commit
24766f55d4
@ -142,7 +142,7 @@ class EncodeFragment : Fragment() {
|
|||||||
content,
|
content,
|
||||||
writer,
|
writer,
|
||||||
getSize(sizeBarView.progress),
|
getSize(sizeBarView.progress),
|
||||||
ecSpinner.selectedItemPosition,
|
(ecSpinner.selectedItemPosition + 1) * 2,
|
||||||
if (writer.canBeInverted()) {
|
if (writer.canBeInverted()) {
|
||||||
colorsSpinner.selectedItemPosition
|
colorsSpinner.selectedItemPosition
|
||||||
} else 0
|
} else 0
|
||||||
|
Loading…
Reference in New Issue
Block a user