mattsilber / applock

A simple library for locking and unlocking Activities with a PIN code or Fingerprint (e.g. a child lock).
Other
87 stars 43 forks source link

Bluetooth Keyboard "Enter" Support and WeakReference nulls #8

Closed lucaventura closed 6 years ago

lucaventura commented 6 years ago

When using a Bluetooth keyboard the "enter" key wouldn't work to submit the pin dialog because hardware keyboards always have an IME action int of 0. Additionally, I noticed maybe 1 in 4 times my unlocked and canceled callbacks weren't being hit because when getting the runnable from the WeakReference it was null.