@@ -204,7 +204,7 @@ public CropImageView.CropShape getCropShape() {
204
204
public void setCropShape (CropImageView .CropShape cropShape ) {
205
205
if (mCropShape != cropShape ) {
206
206
mCropShape = cropShape ;
207
- if ( Build . VERSION . SDK_INT >= 11 && Build .VERSION .SDK_INT <= 17 ) {
207
+ if ( Build .VERSION .SDK_INT <= 17 ) {
208
208
if (mCropShape == CropImageView .CropShape .OVAL ) {
209
209
mOriginalLayerType = getLayerType ();
210
210
if (mOriginalLayerType != View .LAYER_TYPE_SOFTWARE ) {
@@ -320,8 +320,7 @@ public void setSnapRadius(float snapRadius) {
320
320
321
321
/** Set multi touch functionality to enabled/disabled. */
322
322
public boolean setMultiTouchEnabled (boolean multiTouchEnabled ) {
323
- if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .HONEYCOMB
324
- && mMultiTouchEnabled != multiTouchEnabled ) {
323
+ if (mMultiTouchEnabled != multiTouchEnabled ) {
325
324
mMultiTouchEnabled = multiTouchEnabled ;
326
325
if (mMultiTouchEnabled && mScaleDetector == null ) {
327
326
mScaleDetector = new ScaleGestureDetector (getContext (), new ScaleListener ());
@@ -626,9 +625,7 @@ private void drawBackground(Canvas canvas) {
626
625
}
627
626
} else {
628
627
mPath .reset ();
629
- if (Build .VERSION .SDK_INT >= 11
630
- && Build .VERSION .SDK_INT <= 17
631
- && mCropShape == CropImageView .CropShape .OVAL ) {
628
+ if (Build .VERSION .SDK_INT <= 17 && mCropShape == CropImageView .CropShape .OVAL ) {
632
629
mDrawRect .set (rect .left + 2 , rect .top + 2 , rect .right - 2 , rect .bottom - 2 );
633
630
} else {
634
631
mDrawRect .set (rect .left , rect .top , rect .right , rect .bottom );
0 commit comments