Skip to content

Do not open new keyboard when Pin lock screen field gets the focus#31

Merged
tonyr59h merged 4 commits intodevelopfrom
issue/30-keyboard-appears-on-tapping
May 23, 2016
Merged

Do not open new keyboard when Pin lock screen field gets the focus#31
tonyr59h merged 4 commits intodevelopfrom
issue/30-keyboard-appears-on-tapping

Conversation

@daniloercoli
Copy link
Contributor

@daniloercoli daniloercoli commented May 2, 2016

Fix #30 by setting the input content type of TYPE_NULL on the pin_field EditText.
I tried different ways of hiding the keyboard, but this was the only way that worked fine.

Note: You have to test this on a real device, since you can't repro the original issue on emulators.

Once this PR is merged, we should publish a new version of the library and update the main wp-android prj.

… only way I know to completely hide a soft keyboard, even when the user force the focus on it by tapping the field.
@daniloercoli
Copy link
Contributor Author

By the way, I know the cursor is not even displayed in the EditField when TYPE_NULL is applied, but I think it's a minor problem. Showing the software keyboard breaks the UI.
We could think to remove the EditField altogether, in favor of a "4 dots" widget... (See the new Dropbox implementation of it).

@tonyr59h tonyr59h added this to the 1.2.0 milestone May 12, 2016
@tonyr59h
Copy link
Contributor

This addresses the issue but also introduces a new security issue wherein the input in the EditText is not hidden.

I've found that if we use

android:focusable="false"
android:clickable="false"

instead of setting the input type to TYPE_NULL we can prevent the keyboard from opening while maintaining the hidden text.

…s is the only way I know to completely hide a soft keyboard, even when the user force the focus on it by tapping the field."

This reverts commit 0b6e239.
…eld. This is the only way I know to completely hide a soft keyboard, even when the user force the focus on it by tapping the field.""

This reverts commit 5f37323.
@daniloercoli
Copy link
Contributor Author

Thanks @tonyr59h. This is ready for another review.

@tonyr59h
Copy link
Contributor

:shipit:

@tonyr59h tonyr59h merged commit f5019ee into develop May 23, 2016
@tonyr59h tonyr59h deleted the issue/30-keyboard-appears-on-tapping branch May 23, 2016 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants