Skip to content

Commit

Permalink
Merge pull request #1 from amolood/patch-1
Browse files Browse the repository at this point in the history
Patch 1
  • Loading branch information
amolood authored Jul 31, 2018
2 parents 592a64a + dd0daf6 commit 2feef21
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
*/
public class CvvEditText extends ErrorEditText implements TextWatcher {

public static final int DEFAULT_MAX_LENGTH = 4;

public static int DEFAULT_MAX_LENGTH = 3;
private CardType mCardType;

public CvvEditText(Context context) {
Expand Down Expand Up @@ -115,6 +115,9 @@ private int getSecurityCodeLength() {
return mCardType.getSecurityCodeLength();
}
}
public void setSecurityCodeLength(int length) {
DEFAULT_MAX_LENGTH = length;
}

@Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) {}
Expand Down

0 comments on commit 2feef21

Please sign in to comment.