mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-04-01 22:31:51 -04:00
Do not overwrite store field when capturing barcode
This commit is contained in:
@@ -96,7 +96,10 @@ public class LoyaltyCardViewActivity extends AppCompatActivity
|
||||
{
|
||||
final LoyaltyCard loyaltyCard = db.getLoyaltyCard(loyaltyCardId);
|
||||
|
||||
storeField.setText(loyaltyCard.store);
|
||||
if(storeField.getText().length() == 0)
|
||||
{
|
||||
storeField.setText(loyaltyCard.store);
|
||||
}
|
||||
|
||||
if(noteField.getText().length() == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user