You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In MDC-101, when the password text field is being listened for text changes, the codelab is using an OnKeyListener, which should not be used as its documentation says that it will only detect hardware key presses and not software key presses.
Although it works in some cases, it might not always for every device.
The text was updated successfully, but these errors were encountered:
kdb13
changed the title
[MDC-101] Should use TextWatcher instead of OnKeyListener
[MDC-101] Should use TextWatcher instead of OnKeyListener for listening to text changes inside EditText
Sep 10, 2020
Describe the bug
In MDC-101, when the password text field is being listened for text changes, the codelab is using an
OnKeyListener
, which should not be used as its documentation says that it will only detect hardware key presses and not software key presses.Although it works in some cases, it might not always for every device.
To Reproduce
Steps to reproduce the behavior:
onCreateView()
OnKeyListener
is being set topasswordEditText
.Expected behavior
The implementation should be
TextWatcher
instead ofOnKeyListener
.Codelab details (please complete the following information about the codelab):
The text was updated successfully, but these errors were encountered: