Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #661 : Wrong Passcode Dot Issue #825

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import android.Manifest;
import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.support.v4.content.ContextCompat;
import android.support.v4.widget.NestedScrollView;
import android.support.v7.widget.AppCompatButton;
Expand Down Expand Up @@ -58,6 +59,7 @@ public class PassCodeActivity extends BaseActivity implements PassCodeView.PassC
private boolean isInitialScreen;
private boolean isPassCodeVerified;
private String strPassCodeEntered;
private final long TIME_DELAY = 100;

@Override
protected void onCreate(Bundle savedInstanceState) {
Expand Down Expand Up @@ -163,8 +165,17 @@ public void passCodeEntered(String passcode) {
startHomeActivity();
} else {
counter++;
passCodeView.clearPasscodeField();
Toaster.show(clRootview, R.string.incorrect_passcode);
new CountDownTimer(TIME_DELAY, TIME_DELAY) {
@Override
public void onTick(long millisUntilFinished) {
}

@Override
public void onFinish() {
passCodeView.clearPasscodeField();
Toaster.show(clRootview, R.string.incorrect_passcode);
}
}.start();
}
}
}
Expand Down