We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9e60911 + 381e93d commit 62b7f8dCopy full SHA for 62b7f8d
passcodeview/src/main/java/com/hanks/passcodeview/PasscodeView.java
@@ -297,6 +297,10 @@ public PasscodeView setLocalPasscode(String localPasscode) {
297
return this;
298
}
299
300
+ protected Boolean equals(String val) {
301
+ return localPasscode.equals(val);
302
+ }
303
+
304
private void next() {
305
if (passcodeType == TYPE_CHECK_PASSCODE && TextUtils.isEmpty(localPasscode)) {
306
throw new RuntimeException("must set localPasscode when type is TYPE_CHECK_PASSCODE");
@@ -318,7 +322,7 @@ private void next() {
318
322
return;
319
323
320
324
321
- if (localPasscode.equals(psd)) {
325
+ if (equals(psd)) {
326
// match
327
runOkAnimation();
328
} else {
0 commit comments