Skip to content

Commit cc998a2

Browse files
committed
Merge pull request #14 from hearsilent/master
Improve setLayerType API version check
2 parents 757bef0 + 4236786 commit cc998a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ucrop/src/main/java/com/yalantis/ucrop/view/OverlayView.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ public void setupCropBounds() {
172172
}
173173

174174
protected void init() {
175-
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
175+
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN_MR2 &&
176+
Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
176177
setLayerType(LAYER_TYPE_SOFTWARE, null);
177178
}
178179
}

0 commit comments

Comments
 (0)