clear input fields if product's not found
This commit is contained in:
parent
6e497323c0
commit
3d4f86085e
|
@ -201,6 +201,8 @@ class AddAbstractProductActivity : AppCompatActivity() {
|
||||||
runOnUiThread {
|
runOnUiThread {
|
||||||
Toast.makeText(this, getString(R.string.no_product_in_online_database), Toast.LENGTH_LONG)
|
Toast.makeText(this, getString(R.string.no_product_in_online_database), Toast.LENGTH_LONG)
|
||||||
.show()
|
.show()
|
||||||
|
productNameText.setText("")
|
||||||
|
netWeightText.setText("")
|
||||||
}
|
}
|
||||||
return@thread
|
return@thread
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue