mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 14:46:31 +02:00
Improved PIN handling
This commit is contained in:
@@ -2986,12 +2986,14 @@ public class Helper {
|
||||
if (wait > PIN_FAILURE_DELAY_MAX)
|
||||
wait = PIN_FAILURE_DELAY_MAX;
|
||||
long delay = pin_failure_at + wait - new Date().getTime();
|
||||
etPin.setHint(getDateTimeInstance(activity).format(pin_failure_at + wait));
|
||||
Log.i("PIN wait=" + wait + " delay=" + delay);
|
||||
dview.postDelayed(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
etPin.setCompoundDrawables(null, null, null, null);
|
||||
etPin.setHint(R.string.title_advanced_pin);
|
||||
etPin.setEnabled(true);
|
||||
etPin.requestFocus();
|
||||
showKeyboard(etPin);
|
||||
|
||||
Reference in New Issue
Block a user