Skip to content
This repository was archived by the owner on Jun 14, 2022. It is now read-only.
This repository was archived by the owner on Jun 14, 2022. It is now read-only.

Pressing return to confirm PIN entry shifts focus to dialog buttons instead of confirming #590

@cameel

Description

@cameel

General information

  • andOTP 0.7.1.1
  • F-Droid
  • Android 9
  • LIneageOS 16

I have observed the same behavior on other phones, including one running stock Android 8 with an version of andOTP.

Expected result

When I type the correct PIN on the "Authenticate" screen and press the return key on a hardware keyboard, I'm not immediately taken to the list of OTPs. Instead the "Unlock" button gets focus. I then have to press the return key again to actually confirm.

Behavior is the same on the keyboard built into the phone and on a full keyboard attached via USB port.

Behavior is different when using an on-screen keyboard - in that case clicking the green checkmark works as expected and takes me to the code list immediately.

The password entry textbox for encrypted backups also behaves this way. It's probably just the behavior of this UI control rather than something specific to the "Authenticate" screen.

Logcat

06-21 15:59:29.481  1342  1590 V LightsService: setLight #2: color=#ffffffff: brightnessMode=0
06-21 15:59:29.197   796   796 I chatty  : uid=1000(system) /system/bin/surfaceflinger identical 18 lines
06-21 15:59:29.198   796   796 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
06-21 15:59:29.481  1342  1590 I LightsService: setLight_native: light=2 colorARGB=ffffffff flashMode=0 onMS=0 offMS=0 brightnessMode=0 brightnessLevel=0
06-21 15:59:29.483  1342  1590 E LightsService: Light requested not available on this device. 2
06-21 15:59:29.663 18709 18709 I LatinIME: Starting input. Cursor position = -1,-1
06-21 15:59:29.664 18709 18709 I InputAttributes: InputType.TYPE_NULL is specified
06-21 15:59:29.851   796   796 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0

Steps to reproduce

  • Start the application (configured to require PIN)
  • Enter PIN
  • Press return on the keyboard

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions