Android-Image-Cropper icon indicating copy to clipboard operation
Android-Image-Cropper copied to clipboard

v2.8.0 still calls clipRect(rect, Region.Op.XOR) on Android P

Open samlu opened this issue 6 years ago • 1 comments

SDK v2.8.0, CropOverlapView.java #620 - #628 You can see that it still call clipRect(rect, Region.Op.XOR) on Android P. Unfortunately, only INTERSECT and DIFFERENCE are allowed on Android P+

canvas.save(); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { canvas.clipOutPath(mPath); } else { canvas.clipPath(mPath, Region.Op.INTERSECT); } canvas.clipRect(rect, Region.Op.XOR); <- will also be called on Android P canvas.drawRect(left, top, right, bottom, mBackgroundPaint); canvas.restore();

samlu avatar May 28 '19 03:05 samlu

Same problem when rotating image

Sandroisu avatar Sep 08 '22 12:09 Sandroisu