fixed persisted scan state on scan cancelling

This commit is contained in:
leca 2024-10-20 16:02:47 +03:00
parent e05f223075
commit 79ab5c83c0
1 changed files with 1 additions and 1 deletions

View File

@ -307,11 +307,11 @@ class AddAbstractProductActivity : AppCompatActivity() {
if (result.contents == null) {
Toast.makeText(this, getString(R.string.cancelled), Toast.LENGTH_SHORT).show()
} else {
scanningBarcode = false
val scannedBarcode = result.contents
barcodeText.setText(scannedBarcode)
performRequest(scannedBarcode)
}
scanningBarcode = false
}
}