diff options
author | Tor Norbye <tnorbye@google.com> | 2012-08-03 19:05:35 -0700 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2012-08-03 19:18:31 -0700 |
commit | 3afef72f8677aad9cdf9ae8380b7a8d65d658957 (patch) | |
tree | 7b1700ec2f8fced4790597b905ff0f13162601fb /lint/libs/lint_api | |
parent | 206f2f3768b06f95fb5dff17f8b3fcb33bbb03c7 (diff) | |
download | sdk-3afef72f8677aad9cdf9ae8380b7a8d65d658957.zip sdk-3afef72f8677aad9cdf9ae8380b7a8d65d658957.tar.gz sdk-3afef72f8677aad9cdf9ae8380b7a8d65d658957.tar.bz2 |
35804: When importantForAccessibility="no" is set, don't warn
This changeset fixes
35804: ContentDescription should not flag if
importantForAccessibility="no"
When the above attribute is set on a View, the accessibility detector
will not flag the corresponding view for missing a contentDescription
attribute.
Change-Id: I953235a04f1b1ee0f05a94604a2f364c09f851a1
Diffstat (limited to 'lint/libs/lint_api')
-rw-r--r-- | lint/libs/lint_api/src/com/android/tools/lint/detector/api/LintConstants.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lint/libs/lint_api/src/com/android/tools/lint/detector/api/LintConstants.java b/lint/libs/lint_api/src/com/android/tools/lint/detector/api/LintConstants.java index 47a52c0..a0ff760 100644 --- a/lint/libs/lint_api/src/com/android/tools/lint/detector/api/LintConstants.java +++ b/lint/libs/lint_api/src/com/android/tools/lint/detector/api/LintConstants.java @@ -175,6 +175,7 @@ public class LintConstants { public static final String ATTR_IME_ACTION_LABEL = "imeActionLabel"; //$NON-NLS-1$ public static final String ATTR_PRIVATE_IME_OPTIONS = "privateImeOptions"; //$NON-NLS-1$ public static final String VALUE_NONE = "none"; //$NON-NLS-1$ + public static final String VALUE_NO = "no"; //$NON-NLS-1$ public static final String ATTR_NUMERIC = "numeric"; //$NON-NLS-1$ public static final String ATTR_IME_ACTION_ID = "imeActionId"; //$NON-NLS-1$ public static final String ATTR_IME_OPTIONS = "imeOptions"; //$NON-NLS-1$ @@ -190,7 +191,9 @@ public class LintConstants { public static final String ATTR_AUTO_TEXT = "autoText"; //$NON-NLS-1$ public static final String ATTR_ENABLED = "enabled"; //$NON-NLS-1$ public static final String ATTR_SINGLE_LINE = "singleLine"; //$NON-NLS-1$ - public static final String ATTR_SCALE_TYPE = "scaleType"; //$NON-NLS-1$ + public static final String ATTR_SCALE_TYPE = "scaleType"; //$NON-NLS-1$ + public static final String ATTR_IMPORTANT_FOR_ACCESSIBILITY = + "importantForAccessibility"; //$NON-NLS-1$ // AbsoluteLayout layout params public static final String ATTR_LAYOUT_Y = "layout_y"; //$NON-NLS-1$ |