Skip to content
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

Don't show password on screen #204

Merged
merged 1 commit into from Jan 11, 2018
Merged

Conversation

fat-tire
Copy link
Collaborator

@fat-tire fat-tire commented Jan 7, 2018

The EditTextPreference's inputType="textPassword" in settings.xml is currently ignored because its dialog layout uses a regular "text" inputType. So I fixed it.

This could be handled several ways for size, but I just kept it matching the current way the settings are done, including a separate file for the dialog layout.

Note: those ?dialogPreferredPaddings are coming up red in AS and probably shouldn't be used like that, but I guess it doesn't break anything. I just used the same file basically as src/main/res/layout/pref_dialog_edit_text.xml only for a password field.

Also changed it so that the password isn't displayed on the setting, but rather a fixed-# of bullets.

Question, and I'll probably make this an official issue, but should the password and/or other fields be available to Oreo's Autofill service? If not, we might want to explicitly deny it, but I didn't do it in this commit.

This could be handled several ways to optimize, but I just kept it
looking like the current way the settings are done, including a separate
file for the dialog.

Note:  those ?dialogPreferredPaddings are coming up red in AS, but I
guess it doesn't break anything.
@n8fr8 n8fr8 merged commit 111e9e7 into guardianproject:master Jan 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants