From 78e561ce541e5c72780c68b5b14eb50c08bb97ac Mon Sep 17 00:00:00 2001 From: Alan Viverette Date: Tue, 12 Apr 2016 14:03:22 -0400 Subject: [PATCH] Update docs for Drawable.setLayoutDirection() return value Bug: 27107547 Change-Id: I98dd706e6dfb07e7b5ec9c257cf5bea6aea2bbfc --- graphics/java/android/graphics/drawable/Drawable.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/graphics/java/android/graphics/drawable/Drawable.java b/graphics/java/android/graphics/drawable/Drawable.java index 4f600b4ce700b..e31cb513658d3 100644 --- a/graphics/java/android/graphics/drawable/Drawable.java +++ b/graphics/java/android/graphics/drawable/Drawable.java @@ -441,6 +441,9 @@ public abstract class Drawable { * @param layoutDirection the resolved layout direction for the drawable, * either {@link android.view.View#LAYOUT_DIRECTION_LTR} * or {@link android.view.View#LAYOUT_DIRECTION_RTL} + * @return {@code true} if the layout direction change has caused the + * appearance of the drawable to change such that it needs to be + * re-drawn, {@code false} otherwise * @see #getLayoutDirection() */ public final boolean setLayoutDirection(@View.ResolvedLayoutDir int layoutDirection) { @@ -455,8 +458,9 @@ public abstract class Drawable { * Called when the drawable's resolved layout direction changes. * * @param layoutDirection the new resolved layout direction - * @return true if the layout direction change has caused the appearance of - * the drawable to change and it needs to be re-drawn + * @return {@code true} if the layout direction change has caused the + * appearance of the drawable to change such that it needs to be + * re-drawn, {@code false} otherwise * @see #setLayoutDirection(int) */ public boolean onLayoutDirectionChanged(@View.ResolvedLayoutDir int layoutDirection) {