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

Commit 9c2cde05 authored by Chris Craik's avatar Chris Craik
Browse files

Use IllegaleStateException to be consistent with rest of Bitmap class

Change-Id: Idd1c77f92eafa8a43619d27a9567382447540e5f
parent 7bfddb54
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);