fixed persisted scan state on scan cancelling
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user