From 3d4f86085ef785f15134ea941baa4c563ac494bc Mon Sep 17 00:00:00 2001 From: leca Date: Wed, 23 Oct 2024 17:12:23 +0300 Subject: [PATCH] clear input fields if product's not found --- .../activities/AddAbstractProductActivity.kt | 2 ++ 1 file changed, 2 insertions(+) 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 fcb6b9a..c27e90f 100644 --- a/app/src/main/java/org/foxarmy/barcodescannerforemployees/activities/AddAbstractProductActivity.kt +++ b/app/src/main/java/org/foxarmy/barcodescannerforemployees/activities/AddAbstractProductActivity.kt @@ -201,6 +201,8 @@ class AddAbstractProductActivity : AppCompatActivity() { runOnUiThread { Toast.makeText(this, getString(R.string.no_product_in_online_database), Toast.LENGTH_LONG) .show() + productNameText.setText("") + netWeightText.setText("") } return@thread }