-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Answer entered in masked number questions can be seen on android keyboard in landscape view #6122
Comments
The issue we're facing is that we can create an EditText that only allows entering numbers and is password-protected if it's a standard numeric text field without any variations. However, in our case, when we use integer questions, it is
I kind of hacked it by using the transformation method (PasswordTransformationMethod) directly: https://github.com/getodk/collect/blob/master/collect_app/src/main/java/org/odk/collect/android/views/WidgetAnswerText.kt#L63 What can we do about this? Here are some options:
@seadowg @lognaturel |
I'd vote for option 2 (don't support masked for integer and decimal questions). It seems like a reasonable trade off. Not opposed to option 1 though if that's everyone else's preference: it just seems like even more maintenance to a feature that already feels like it's got a undeservedly high code cost. |
I find full-screen mode pretty disorienting so I'd be happy to do away with it if it's a change that's easy to make and understand. But I do see @seadowg's point and am fine with either of the other two options, really. Sorry I don't have a more helpful opinion here! |
It is easy but is it ok from the UI perspective? @alyblenkin what do you think? It wouldn't be possible to answer questions on smaller devices in landscape mode I guess. |
That would be great, if it's not too much work! |
I think I'm leaning towards option 2 without playing around with it because we could make it clear in the documentation that we don't support masked for integer and decimal questions and that wouldn't be as confusing from a user experience perspective. |
I didn’t realize it would be impossible to fill in. That doesn’t sound like a good option, then. Happy to go with what @alyblenkin prefers! |
ODK Collect version
the master version b3cd4a0
Android version
10, 11, 14
Device used
Redmi 9T, Galaxy M12, Pixel 7a
Problem description
Answer entered in masked number questions can be seen on android keyboard in landscape view.
Steps to reproduce the problem
masked_text.xlsx.txt
Expected behavior
Answer entered in masked number question should be hidden on android keyboard in landscape view
The text was updated successfully, but these errors were encountered: