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

Commit 084fa3a6 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Update maxTargetSdk for createAshmemBitmap"

parents b1b47527 d608691c
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -684,15 +684,13 @@ public final class Bitmap implements Parcelable {
        return b;
    }

    // FIXME: The maxTargetSdk should be R, once R is no longer set to
    // CUR_DEVELOPMENT.
    /**
     * Creates a new immutable bitmap backed by ashmem which can efficiently
     * be passed between processes.
     *
     * @hide
     */
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.Q,
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R,
            publicAlternatives = "Use {@link #asShared()} instead")
    public Bitmap createAshmemBitmap() {
        checkRecycled("Can't copy a recycled bitmap");