summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Alan Viverette <alanv@google.com> 2014-09-22 23:48:45 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2014-09-22 23:48:46 +0000
commit53b5cc87735cea92b3b3c5cb7215846bfb5ddf1d (patch)
treeb56500a305ca7524cf24b88b9bfc32642c979211
parentc90b5ebbbff46e11a7c634665e9dc48ef39e2cb2 (diff)
parentfde4e3b17a5ead9f1a0848bf35b4f49f16600795 (diff)
Merge "Fix inaccurate TypedArray.getDrawable() documentation" into lmp-dev
-rw-r--r--core/java/android/content/res/TypedArray.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/core/java/android/content/res/TypedArray.java b/core/java/android/content/res/TypedArray.java
index 186623aa78d5..73b93c64d524 100644
--- a/core/java/android/content/res/TypedArray.java
+++ b/core/java/android/content/res/TypedArray.java
@@ -16,6 +16,7 @@
package android.content.res;
+import android.annotation.Nullable;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.util.DisplayMetrics;
@@ -728,15 +729,13 @@ public class TypedArray {
}
/**
- * Retrieve the Drawable for the attribute at <var>index</var>. This
- * gets the resource ID of the selected attribute, and uses
- * {@link Resources#getDrawable Resources.getDrawable} of the owning
- * Resources object to retrieve its Drawable.
+ * Retrieve the Drawable for the attribute at <var>index</var>.
*
* @param index Index of attribute to retrieve.
*
* @return Drawable for the attribute, or null if not defined.
*/
+ @Nullable
public Drawable getDrawable(int index) {
if (mRecycled) {
throw new RuntimeException("Cannot make calls to a recycled instance!");