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

Commit 6b8e13b7 authored by Chris Craik's avatar Chris Craik Committed by Android (Google) Code Review
Browse files

Merge "Use IllegaleStateException to be consistent with rest of Bitmap class"

parents 3f9a6090 9c2cde05
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -203,10 +203,10 @@ public final class Bitmap implements Parcelable {
            throw new IllegalArgumentException("width and height must be > 0");
        }
        if (!isMutable()) {
            throw new IllegalArgumentException("only mutable bitmaps may be reconfigured");
            throw new IllegalStateException("only mutable bitmaps may be reconfigured");
        }
        if (mBuffer == null) {
            throw new IllegalArgumentException("only non-inPurgeable bitmaps may be reconfigured");
            throw new IllegalStateException("only non-purgeable bitmaps may be reconfigured");
        }

        nativeReconfigure(mNativeBitmap, width, height, config.nativeInt, mBuffer.length);