Skip to content

Commit

Permalink
update: description for equal method of passcodeView
Browse files Browse the repository at this point in the history
  • Loading branch information
hanks-zyh committed Nov 28, 2017
1 parent a86cf6c commit e245eec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ An Passcode view view for Android.

```gradle
dependencies {
compile 'com.hanks:passcodeview:0.1.1'
compile 'com.hanks:passcodeview:0.1.2'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,14 +304,11 @@ public PasscodeView setPasscodeType(@PasscodeViewType int passcodeType) {
}

/**
* <p>
* <pre>
* passcodeView.setListener(new PasscodeView.PasscodeViewListener() {
* @Override
* public void onFail() {
* }
*
* @Override
* public void onSuccess(String number) {
* String encrypted = SecurePreferences.hashPrefKey(raw);
* SharedPreferences.Editor editor = keys.edit();
Expand All @@ -326,7 +323,6 @@ public PasscodeView setPasscodeType(@PasscodeViewType int passcodeType) {
* public PView(Context context) {
* super(context);
* }
* @Override
* protected boolean equals(String psd) {
* String after = SecurePreferences.hashPrefKey(raw);
* return after.equals(encrypted_passcode);
Expand All @@ -335,6 +331,8 @@ public PasscodeView setPasscodeType(@PasscodeViewType int passcodeType) {
* PView passcodeView = new PView(PasscodeActivity.this);
*
* </pre>
* @param val the input number string
* @return true if val is right passcode
*/
protected boolean equals(String val) {
return localPasscode.equals(val);
Expand Down

0 comments on commit e245eec

Please sign in to comment.