Skip to content

Commit 20317bd

Browse files
committed
restrict sepa input to german
1 parent 77fd31b commit 20317bd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ui/src/main/java/io/snabble/sdk/ui/payment/SEPACardInputView.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ public void afterTextChanged(Editable s) {
8989
}
9090
});
9191

92+
ibanCountryCode.setEnabled(false);
93+
9294
ibanInput.addTextChangedListener(new TextWatcher() {
9395
boolean isUpdating;
9496

@@ -196,9 +198,9 @@ private void saveCard() {
196198
} else {
197199
ibanError.setVisibility(View.VISIBLE);
198200
shake(ibanInput);
199-
shake(ibanCountryCode);
201+
//shake(ibanCountryCode);
200202
ibanInput.setBackgroundResource(R.drawable.ic_round_edittext_error);
201-
ibanCountryCode.setBackgroundResource(R.drawable.ic_round_edittext_error);
203+
//ibanCountryCode.setBackgroundResource(R.drawable.ic_round_edittext_error);
202204
ok = false;
203205
}
204206

0 commit comments

Comments
 (0)