Loading api/current.txt +1 −1 Original line number Diff line number Diff line Loading @@ -50677,7 +50677,7 @@ package android.view { method public final int getScrollY(); method @android.view.ViewDebug.ExportedProperty(category="drawing") @ColorInt public int getSolidColor(); method @LayoutRes public int getSourceLayoutResId(); method @android.view.ViewDebug.ExportedProperty(category="accessibility") @Nullable public final CharSequence getStateDescription(); method @android.view.ViewDebug.ExportedProperty(category="accessibility") @Nullable public CharSequence getStateDescription(); method public android.animation.StateListAnimator getStateListAnimator(); method protected int getSuggestedMinimumHeight(); method protected int getSuggestedMinimumWidth(); core/java/android/view/View.java +8 −7 Original line number Diff line number Diff line Loading @@ -8727,7 +8727,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, structure.setContextClickable(true); } structure.setClassName(getAccessibilityClassName().toString()); structure.setContentDescription(getContentDescription()); structure.setContentDescription(mContentDescription); } /** Loading Loading @@ -9934,8 +9934,8 @@ public class View implements Drawable.Callback, KeyEvent.Callback, info.setImportantForAccessibility(isImportantForAccessibility()); info.setPackageName(mContext.getPackageName()); info.setClassName(getAccessibilityClassName()); info.setStateDescription(getStateDescription()); info.setContentDescription(getContentDescription()); info.setStateDescription(mStateDescription); info.setContentDescription(mContentDescription); info.setEnabled(isEnabled()); info.setClickable(isClickable()); Loading Loading @@ -10318,7 +10318,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, * @see #setStateDescription(CharSequence) */ @ViewDebug.ExportedProperty(category = "accessibility") public final @Nullable CharSequence getStateDescription() { public @Nullable CharSequence getStateDescription() { return mStateDescription; } Loading Loading @@ -13724,7 +13724,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, */ @UnsupportedAppUsage public CharSequence getIterableTextForAccessibility() { return getContentDescription(); return mContentDescription; } /** Loading Loading @@ -29514,9 +29514,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback, stream.addProperty("text:textAlignment", getTextAlignment()); // accessibility CharSequence contentDescription = getContentDescription(); stream.addProperty("accessibility:contentDescription", contentDescription == null ? "" : contentDescription.toString()); mContentDescription == null ? "" : mContentDescription.toString()); stream.addProperty("accessibility:stateDescription", mStateDescription == null ? "" : mStateDescription.toString()); stream.addProperty("accessibility:labelFor", getLabelFor()); stream.addProperty("accessibility:importantForAccessibility", getImportantForAccessibility()); } Loading
api/current.txt +1 −1 Original line number Diff line number Diff line Loading @@ -50677,7 +50677,7 @@ package android.view { method public final int getScrollY(); method @android.view.ViewDebug.ExportedProperty(category="drawing") @ColorInt public int getSolidColor(); method @LayoutRes public int getSourceLayoutResId(); method @android.view.ViewDebug.ExportedProperty(category="accessibility") @Nullable public final CharSequence getStateDescription(); method @android.view.ViewDebug.ExportedProperty(category="accessibility") @Nullable public CharSequence getStateDescription(); method public android.animation.StateListAnimator getStateListAnimator(); method protected int getSuggestedMinimumHeight(); method protected int getSuggestedMinimumWidth();
core/java/android/view/View.java +8 −7 Original line number Diff line number Diff line Loading @@ -8727,7 +8727,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, structure.setContextClickable(true); } structure.setClassName(getAccessibilityClassName().toString()); structure.setContentDescription(getContentDescription()); structure.setContentDescription(mContentDescription); } /** Loading Loading @@ -9934,8 +9934,8 @@ public class View implements Drawable.Callback, KeyEvent.Callback, info.setImportantForAccessibility(isImportantForAccessibility()); info.setPackageName(mContext.getPackageName()); info.setClassName(getAccessibilityClassName()); info.setStateDescription(getStateDescription()); info.setContentDescription(getContentDescription()); info.setStateDescription(mStateDescription); info.setContentDescription(mContentDescription); info.setEnabled(isEnabled()); info.setClickable(isClickable()); Loading Loading @@ -10318,7 +10318,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, * @see #setStateDescription(CharSequence) */ @ViewDebug.ExportedProperty(category = "accessibility") public final @Nullable CharSequence getStateDescription() { public @Nullable CharSequence getStateDescription() { return mStateDescription; } Loading Loading @@ -13724,7 +13724,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, */ @UnsupportedAppUsage public CharSequence getIterableTextForAccessibility() { return getContentDescription(); return mContentDescription; } /** Loading Loading @@ -29514,9 +29514,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback, stream.addProperty("text:textAlignment", getTextAlignment()); // accessibility CharSequence contentDescription = getContentDescription(); stream.addProperty("accessibility:contentDescription", contentDescription == null ? "" : contentDescription.toString()); mContentDescription == null ? "" : mContentDescription.toString()); stream.addProperty("accessibility:stateDescription", mStateDescription == null ? "" : mStateDescription.toString()); stream.addProperty("accessibility:labelFor", getLabelFor()); stream.addProperty("accessibility:importantForAccessibility", getImportantForAccessibility()); }