False positive selection error (inconsistant)
Description
Occasionally while selecting and deselecting options in the QR Scan tab, the error message "Please ensure that at least one barcode is selected in manual mode". This is inconsistent behavior, but it's consistent enough that if you try the reproducible steps a couple times it should work.
Steps
- Open the camera app
- Select the "QR SCAN" tab
- Switch to manual mode by clicking the "X" in the bottom left. Ignore this step if it is already in manual mode.
- Deselect all scan options on the top.
- Open the "More Options" window by tapping on the three dots in the top right.
- Deselect all options except for a single option (e.g. "CODABAR").
- Click "OK" in the bottom right.
- Open the "More Options" window by tapping on the three dots in the top right.
- Select another option and deselect your first option (e.g. select "CODE_39" and deselect "CODABAR"). It does not matter if you select the second option before or after deselecting the first option (e.g. you can deselect "CODABAR" before selecting "CODE_39" and it will still reproduce the bug).
- Click "OK" in the bottom right.
- If no error message pops up, repeat steps 8 through 10.
Unexpected behavior
Eventually, the error message "Please ensure that at least one barcode is selected in manual mode" should pop up, despite an option being selected. Opening the "More Options" menu by tapping the three dots in the top right shows that now both options have been selected.
Expected behavior
No error message should appear. Only one option should be selected.
Video example
In the video, it does not error the first time trying steps 8 through 10 but does error the second time. I have found that it usually does not error on the first try.
https://github.com/user-attachments/assets/ae2d7ea8-db35-4d2f-a6f7-325df1bf771b
Hi @An-anonymous-coder,
Thanks a lot for testing out the camera app and reporting this issue!
Could you please test the apk present in the following link for this issue?
https://drive.proton.me/urls/B2K0BTBM24#EmTKQjhs0uBK
Hi @An-anonymous-coder,
Thanks a lot for testing out the camera app and reporting this issue!
Could you please test the apk present in the following link for this issue?
https://drive.proton.me/urls/B2K0BTBM24#EmTKQjhs0uBK
Tried it out, and it works as intended! Good job!
That's great to know. Will make a PR for the same soon
Thanks a lot for testing our app and reporting this issue @An-anonymous-coder!