fixed persisted scan state on scan cancelling
This commit is contained in:
parent
e05f223075
commit
79ab5c83c0
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue