diff --git a/core/api/module-lib-current.txt b/core/api/module-lib-current.txt index 06e6d9ccbbf01..781385c455d52 100644 --- a/core/api/module-lib-current.txt +++ b/core/api/module-lib-current.txt @@ -48,10 +48,6 @@ package android.graphics { method public static void setTargetSdkVersion(int); } - public final class ImageDecoder implements java.lang.AutoCloseable { - method @AnyThread @NonNull public static android.graphics.ImageDecoder.Source createSource(@NonNull android.content.ContentResolver, @NonNull android.net.Uri, @Nullable android.content.res.Resources); - } - } package android.media { diff --git a/graphics/java/android/graphics/ImageDecoder.java b/graphics/java/android/graphics/ImageDecoder.java index 4cac7fbb023bd..3732285861618 100644 --- a/graphics/java/android/graphics/ImageDecoder.java +++ b/graphics/java/android/graphics/ImageDecoder.java @@ -27,7 +27,6 @@ import android.annotation.IntRange; import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.Px; -import android.annotation.SystemApi; import android.annotation.TestApi; import android.annotation.WorkerThread; import android.content.ContentResolver; @@ -916,12 +915,8 @@ public final class ImageDecoder implements AutoCloseable { /** * Provide Resources for density scaling. * - * This is a SystemApi to enable legacy behavior, so there is no need to - * make it public like the version above, which does not have a Resources - * parameter. * @hide */ - @SystemApi(client = SystemApi.Client.MODULE_LIBRARIES) @AnyThread @NonNull public static Source createSource(@NonNull ContentResolver cr,