Loading api/system-current.txt +8 −0 Original line number Diff line number Diff line Loading @@ -1266,6 +1266,14 @@ package android.content.pm.permission { } package android.graphics.drawable { public final class Icon implements android.os.Parcelable { method public static android.graphics.drawable.Icon createWithResource(android.content.res.Resources, int); } } package android.hardware { public final class Sensor { Loading graphics/java/android/graphics/drawable/Icon.java +2 −1 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ import android.annotation.DrawableRes; import android.annotation.IdRes; import android.annotation.IntDef; import android.annotation.NonNull; import android.annotation.SystemApi; import android.annotation.UnsupportedAppUsage; import android.content.ContentResolver; import android.content.Context; Loading Loading @@ -568,7 +569,7 @@ public final class Icon implements Parcelable { * Version of createWithResource that takes Resources. Do not use. * @hide */ @UnsupportedAppUsage @SystemApi public static Icon createWithResource(Resources res, @DrawableRes int resId) { if (res == null) { throw new IllegalArgumentException("Resource must not be null."); Loading Loading
api/system-current.txt +8 −0 Original line number Diff line number Diff line Loading @@ -1266,6 +1266,14 @@ package android.content.pm.permission { } package android.graphics.drawable { public final class Icon implements android.os.Parcelable { method public static android.graphics.drawable.Icon createWithResource(android.content.res.Resources, int); } } package android.hardware { public final class Sensor { Loading
graphics/java/android/graphics/drawable/Icon.java +2 −1 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ import android.annotation.DrawableRes; import android.annotation.IdRes; import android.annotation.IntDef; import android.annotation.NonNull; import android.annotation.SystemApi; import android.annotation.UnsupportedAppUsage; import android.content.ContentResolver; import android.content.Context; Loading Loading @@ -568,7 +569,7 @@ public final class Icon implements Parcelable { * Version of createWithResource that takes Resources. Do not use. * @hide */ @UnsupportedAppUsage @SystemApi public static Icon createWithResource(Resources res, @DrawableRes int resId) { if (res == null) { throw new IllegalArgumentException("Resource must not be null."); Loading