diff --git a/app/src/main/java/org/foxarmy/barcodescannerforemployees/activities/AddAbstractProductActivity.kt b/app/src/main/java/org/foxarmy/barcodescannerforemployees/activities/AddAbstractProductActivity.kt index b06022c..369ea4f 100644 --- a/app/src/main/java/org/foxarmy/barcodescannerforemployees/activities/AddAbstractProductActivity.kt +++ b/app/src/main/java/org/foxarmy/barcodescannerforemployees/activities/AddAbstractProductActivity.kt @@ -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 } }