Crash While Scanning
bug
**Describe the bug**
The app stops working when you try to use the barcode feature. It stops when the product data is being retrieved (the loading circle appears).
This happens about 5 out of 10 times.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to Edit item
2. Click on Barcode Scanner icon
3. Scan the code
4. Loading circle appears
5. Before the product data appears
6. Turn-off the internet (make sure the app showns no internet connection)
7. Then, turn on the internet (loading circle appears)
8. See error
**Expected behavior**
The app should be able to scan and retrieve data without crashing.
**Screenshots**
I can provide if needed.
**Smartphone (please complete the following information):**
- Device: [Samsung A30]
- OS: [Android 11]
- Browser [Cromite]
- Version [2.5.1]
Edit: Updated the Reproduce step.
7 条评论