summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorGilles Debunne <debunne@google.com>2010-04-12 14:21:26 -0700
committerGilles Debunne <debunne@google.com>2010-04-12 15:33:49 -0700
commit20fc9bfe3ad16c5f36026fc43c85d0647b75cc40 (patch)
tree13476e05d4eb577f74abddb6dc85ec98e99b8a71 /graphics
parent1477798b4fd9b6798266f92cfa87a3fed597f779 (diff)
downloadframeworks_base-20fc9bfe3ad16c5f36026fc43c85d0647b75cc40.zip
frameworks_base-20fc9bfe3ad16c5f36026fc43c85d0647b75cc40.tar.gz
frameworks_base-20fc9bfe3ad16c5f36026fc43c85d0647b75cc40.tar.bz2
Fixed links in MipmapDrawable documentation.
Fix for 78aaa97b77d56e35e994611406deb398eb9005db Change-Id: I3b4a3b987560d5d3934776cdc7ae98c954bfab32
Diffstat (limited to 'graphics')
-rw-r--r--graphics/java/android/graphics/drawable/Drawable.java3
-rw-r--r--graphics/java/android/graphics/drawable/MipmapDrawable.java8
2 files changed, 6 insertions, 5 deletions
diff --git a/graphics/java/android/graphics/drawable/Drawable.java b/graphics/java/android/graphics/drawable/Drawable.java
index 0f48f3a..856f24e 100644
--- a/graphics/java/android/graphics/drawable/Drawable.java
+++ b/graphics/java/android/graphics/drawable/Drawable.java
@@ -837,7 +837,8 @@ public abstract class Drawable {
* Create a new drawable without supplying resources the caller
* is running in. Note that using this means the density-dependent
* drawables (like bitmaps) will not be able to update their target
- * density correctly.
+ * density correctly. One should use {@link #newDrawable(Resources)}
+ * instead to provide a resource.
*/
public abstract Drawable newDrawable();
/**
diff --git a/graphics/java/android/graphics/drawable/MipmapDrawable.java b/graphics/java/android/graphics/drawable/MipmapDrawable.java
index 300d160..75fdeed 100644
--- a/graphics/java/android/graphics/drawable/MipmapDrawable.java
+++ b/graphics/java/android/graphics/drawable/MipmapDrawable.java
@@ -56,8 +56,8 @@ import java.io.IOException;
*
* <p>
* The intrinsic size of a MipmapDrawable are inferred from those of the largest mipmap (in terms of
- * {@link #Drawable.getIntrinsicHeight()}). On the opposite, its minimum size is defined by the
- * smallest provided mipmap.
+ * {@link Drawable#getIntrinsicHeight()}). On the opposite, its minimum
+ * size is defined by the smallest provided mipmap.
* </p>
* It can be defined in an XML file with the <code>&lt;mipmap></code> element.
@@ -229,8 +229,8 @@ public class MipmapDrawable extends DrawableContainer {
/**
* Adds a Drawable to the list of available mipmap Drawables. This list can be retrieved
- * using {@link #DrawableContainer.getChildren()} and this method ensures that it is
- * always sorted by increasing Drawable {@link #Drawable.getIntrinsicHeight()}.
+ * using {@link DrawableContainer.DrawableContainerState#getChildren()} and this method
+ * ensures that it is always sorted by increasing {@link Drawable#getIntrinsicHeight()}.
*
* @param drawable The Drawable that will be added to children list
*/