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

Commit 5558f66e authored by Owen Lin's avatar Owen Lin Committed by Android Git Automerger
Browse files

am cb949887: Merge "Release the constraint on the requested version." into jb-dev

* commit 'cb949887':
  Release the constraint on the requested version.
parents bdf6b5dd cb949887
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -180,9 +180,9 @@ public final class BitmapRegionDecoder {
     */
    public Bitmap decodeRegion(Rect rect, BitmapFactory.Options options) {
        checkRecycled("decodeRegion called on recycled region decoder");
        if (rect.left < 0 || rect.top < 0 || rect.right > getWidth()
                || rect.bottom > getHeight())
            throw new IllegalArgumentException("rectangle is not inside the image");
        if (rect.right <= 0 || rect.bottom <= 0 || rect.left >= getWidth()
                || rect.top >= getHeight())
            throw new IllegalArgumentException("rectangle is outside the image");
        return nativeDecodeRegion(mNativeBitmapRegionDecoder, rect.left, rect.top,
                rect.right - rect.left, rect.bottom - rect.top, options);
    }