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) {
|
if (result.contents == null) {
|
||||||
Toast.makeText(this, getString(R.string.cancelled), Toast.LENGTH_SHORT).show()
|
Toast.makeText(this, getString(R.string.cancelled), Toast.LENGTH_SHORT).show()
|
||||||
} else {
|
} else {
|
||||||
scanningBarcode = false
|
|
||||||
val scannedBarcode = result.contents
|
val scannedBarcode = result.contents
|
||||||
barcodeText.setText(scannedBarcode)
|
barcodeText.setText(scannedBarcode)
|
||||||
performRequest(scannedBarcode)
|
performRequest(scannedBarcode)
|
||||||
}
|
}
|
||||||
|
scanningBarcode = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue