Add logging around registration code autofill.

This commit is contained in:
Nicholas Tinsley 2024-07-26 18:47:42 +02:00
parent b42e48a08a
commit 556a25447e

View file

@ -244,6 +244,7 @@ class EnterCodeFragment : LoggingFragment(R.layout.fragment_registration_enter_c
@Subscribe(threadMode = ThreadMode.MAIN)
fun onVerificationCodeReceived(event: ReceivedSmsEvent) {
Log.i(TAG, "Received verification code via EventBus.")
binding.code.clear()
if (event.code.isBlank() || event.code.length != ReceivedSmsEvent.CODE_LENGTH) {
@ -264,6 +265,7 @@ class EnterCodeFragment : LoggingFragment(R.layout.fragment_registration_enter_c
}
}, i * 200L)
}
Log.i(TAG, "Finished auto-filling code.")
} catch (notADigit: IllegalArgumentException) {
Log.w(TAG, "Failed to convert code into digits.", notADigit)
autopilotCodeEntryActive = false