Skip to content

Commit

Permalink
Merge pull request #1409 from Sarthak9504/fix-bug-1368
Browse files Browse the repository at this point in the history
Type: fix
  • Loading branch information
IOhacker authored Oct 19, 2023
2 parents 2091f6d + ba83458 commit 22d3ae8
Showing 1 changed file with 19 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,20 +112,25 @@ public void onRequestOtpFailed(String s) {
public void onNextClicked() {
Utils.hideSoftKeyboard(this);

mFabNext.setClickable(false);
mProgressBar.setVisibility(View.VISIBLE);
mTvVerifyingOtp.setVisibility(View.VISIBLE);
mEtOtp.setClickable(false);
mEtOtp.setFocusableInTouchMode(false);
mEtOtp.setFocusable(false);

Handler handler = new Handler();
handler.postDelayed(new Runnable() {
@Override
public void run() {
mMobileVerificationPresenter.verifyOTP(mEtOtp.getText().toString().trim());
}
}, 1500);
if (mEtOtp.getText().toString().trim().isEmpty()) {
showToast("OTP not Entered");
mEtOtp.requestFocus();
} else {
mFabNext.setClickable(false);
mProgressBar.setVisibility(View.VISIBLE);
mTvVerifyingOtp.setVisibility(View.VISIBLE);
mEtOtp.setClickable(false);
mEtOtp.setFocusableInTouchMode(false);
mEtOtp.setFocusable(false);

Handler handler = new Handler();
handler.postDelayed(new Runnable() {
@Override
public void run() {
mMobileVerificationPresenter.verifyOTP(mEtOtp.getText().toString().trim());
}
}, 1500);
}
}

@Override
Expand Down

0 comments on commit 22d3ae8

Please sign in to comment.