Improved PIN handling

pull/212/head
M66B 2 years ago
parent 535b5b3f02
commit 7244858a2c

@ -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);

@ -24,7 +24,7 @@
android:layout_marginTop="24dp"
android:drawableStart="@drawable/twotone_hourglass_top_24"
android:drawablePadding="6dp"
android:hint="@string/title_advanced_pin"
android:drawableTint="?android:attr/textColorPrimaryNoDisable"
android:imeOptions="actionDone"
android:inputType="numberPassword"
android:maxLines="1"

Loading…
Cancel
Save