Skip to content

Commit

Permalink
Delay the biometric prompt 2 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbakker committed Mar 2, 2024
1 parent f7bac43 commit ff52855
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.text.InputType;
import android.view.KeyEvent;
import android.view.View;
Expand Down Expand Up @@ -205,7 +206,9 @@ public void onResume() {
}

if (_bioKey != null && _bioPrompt == null && !_inhibitBioPrompt && !remindPassword) {
_bioPrompt = showBiometricPrompt();
new Handler().postDelayed((Runnable) () -> {
_bioPrompt = showBiometricPrompt();
}, 2000);
}

_inhibitBioPrompt = false;
Expand Down

0 comments on commit ff52855

Please sign in to comment.