We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 092ad66 + b708f77 commit 9aefa14Copy full SHA for 9aefa14
1 file changed
core/java/android/view/View.java
@@ -5214,11 +5214,19 @@ public CharSequence getContentDescription() {
5214
*/
5215
@RemotableViewMethod
5216
public void setContentDescription(CharSequence contentDescription) {
5217
+ if (mContentDescription == null) {
5218
+ if (contentDescription == null) {
5219
+ return;
5220
+ }
5221
+ } else if (mContentDescription.equals(contentDescription)) {
5222
5223
5224
mContentDescription = contentDescription;
5225
final boolean nonEmptyDesc = contentDescription != null && contentDescription.length() > 0;
5226
if (nonEmptyDesc && getImportantForAccessibility() == IMPORTANT_FOR_ACCESSIBILITY_AUTO) {
5227
setImportantForAccessibility(IMPORTANT_FOR_ACCESSIBILITY_YES);
5228
}
5229
+ notifyAccessibilityStateChanged();
5230
5231
5232
/**
0 commit comments