Skip to content

Commit

Permalink
[SampleApp-Android] Removing auto-validation. User have to click the …
Browse files Browse the repository at this point in the history
…button to validate the code.
  • Loading branch information
Lucas Frossard committed May 15, 2023
1 parent 6007e59 commit 4acad12
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,7 @@ public void onResume() {
this.fillCode(extras);
this.showDebugMessages(extras);
String filledCode = binding.otpCodeInputId.getText().toString();
if (!filledCode.isEmpty()) {
binding.validateOtp.callOnClick();
} else {
if (filledCode.isEmpty()) {
listenForCodeToAutoSubmit();
}
}
Expand All @@ -136,10 +134,6 @@ public void onReceive(Context context, Intent intent) {
if (intent != null) {
String code = intent.getStringExtra("code");
OtpValidatorFragment.this.binding.otpCodeInputId.setText(code);
FragmentActivity activity = getActivity();
if (activity != null && isAdded()) {
OtpValidatorFragment.this.binding.validateOtp.callOnClick();
}
}
}
};
Expand Down

0 comments on commit 4acad12

Please sign in to comment.