Apply suggestions from documentation review

Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com>
This commit is contained in:
Joe Farebrother
2024-02-02 17:21:23 +00:00
committed by GitHub
parent 9130603334
commit 3878192810

View File

@@ -11,13 +11,13 @@
<recommendation>
<p>
For editable text fields containing sensitive information, the <code>inputType</code> should be set to <code>textPassword</code> or similar to ensure it is properly masked.
Otherwise, sensitive data that is required to be displayed should be hidden by default, and only revealed based on an explicit user action.
Otherwise, sensitive data that must be displayed should be hidden by default, and only revealed based on an explicit user action.
</p>
</recommendation>
<example>
<p>
In the following (bad) case, sensitive information <code>password</code> is exposed to the <code>TextView</code>.
In the following (bad) case, sensitive information in <code>password</code> is exposed to the <code>TextView</code>.
</p>
<sample src="AndroidSensitiveTextBad.java"/>