Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5de17526 authored by Leon Scroggins III's avatar Leon Scroggins III
Browse files

Deprecate createFromResourceStream with BitmapFactory.Options

Bug: 63909536
Test: none

This version is never used internally with a non-null Options object.
The Options object prevents us from taking advantage of the new
ImageDecoder.

Change-Id: I867f482249a0a6f4b37220b597ef38abf0684360
parent ce9bcc49
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -14602,7 +14602,7 @@ package android.graphics.drawable {
    method public final android.graphics.Rect copyBounds();
    method public static android.graphics.drawable.Drawable createFromPath(java.lang.String);
    method public static android.graphics.drawable.Drawable createFromResourceStream(android.content.res.Resources, android.util.TypedValue, java.io.InputStream, java.lang.String);
    method public static android.graphics.drawable.Drawable createFromResourceStream(android.content.res.Resources, android.util.TypedValue, java.io.InputStream, java.lang.String, android.graphics.BitmapFactory.Options);
    method public static deprecated android.graphics.drawable.Drawable createFromResourceStream(android.content.res.Resources, android.util.TypedValue, java.io.InputStream, java.lang.String, android.graphics.BitmapFactory.Options);
    method public static android.graphics.drawable.Drawable createFromStream(java.io.InputStream, java.lang.String);
    method public static android.graphics.drawable.Drawable createFromXml(android.content.res.Resources, org.xmlpull.v1.XmlPullParser) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException;
    method public static android.graphics.drawable.Drawable createFromXml(android.content.res.Resources, org.xmlpull.v1.XmlPullParser, android.content.res.Resources.Theme) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException;
+2 −0
Original line number Diff line number Diff line
@@ -1168,6 +1168,8 @@ public abstract class Drawable {
    /**
     * Create a drawable from an inputstream, using the given resources and
     * value to determine density information.
     *
     * @deprecated Prefer the version without an Options object.
     */
    public static Drawable createFromResourceStream(Resources res, TypedValue value,
            InputStream is, String srcName, BitmapFactory.Options opts) {