Update from API review.

Change-Id: I16b1c566f91167aac9615ac59dd297a154c828ea
This commit is contained in:
Dianne Hackborn
2009-09-30 22:35:40 -07:00
parent d9b6f14a69
commit 29e4a3c566
11 changed files with 79 additions and 84 deletions

View File

@@ -115,6 +115,7 @@ public class BitmapDrawable extends Drawable {
* @deprecated Use {@link #BitmapDrawable(Resources, String)} to ensure
* that the drawable has correctly set its target density.
*/
@Deprecated
public BitmapDrawable(String filepath) {
this(new BitmapState(BitmapFactory.decodeFile(filepath)), null);
if (mBitmap == null) {
@@ -138,6 +139,7 @@ public class BitmapDrawable extends Drawable {
* @deprecated Use {@link #BitmapDrawable(Resources, java.io.InputStream)} to ensure
* that the drawable has correctly set its target density.
*/
@Deprecated
public BitmapDrawable(java.io.InputStream is) {
this(new BitmapState(BitmapFactory.decodeStream(is)), null);
if (mBitmap == null) {