@@ -204,7 +204,7 @@ public CropImageView.CropShape getCropShape() {
204204 public void setCropShape (CropImageView .CropShape cropShape ) {
205205 if (mCropShape != cropShape ) {
206206 mCropShape = cropShape ;
207- if ( Build . VERSION . SDK_INT >= 11 && Build .VERSION .SDK_INT <= 17 ) {
207+ if ( Build .VERSION .SDK_INT <= 17 ) {
208208 if (mCropShape == CropImageView .CropShape .OVAL ) {
209209 mOriginalLayerType = getLayerType ();
210210 if (mOriginalLayerType != View .LAYER_TYPE_SOFTWARE ) {
@@ -320,8 +320,7 @@ public void setSnapRadius(float snapRadius) {
320320
321321 /** Set multi touch functionality to enabled/disabled. */
322322 public boolean setMultiTouchEnabled (boolean multiTouchEnabled ) {
323- if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .HONEYCOMB
324- && mMultiTouchEnabled != multiTouchEnabled ) {
323+ if (mMultiTouchEnabled != multiTouchEnabled ) {
325324 mMultiTouchEnabled = multiTouchEnabled ;
326325 if (mMultiTouchEnabled && mScaleDetector == null ) {
327326 mScaleDetector = new ScaleGestureDetector (getContext (), new ScaleListener ());
@@ -626,9 +625,7 @@ private void drawBackground(Canvas canvas) {
626625 }
627626 } else {
628627 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 ) {
632629 mDrawRect .set (rect .left + 2 , rect .top + 2 , rect .right - 2 , rect .bottom - 2 );
633630 } else {
634631 mDrawRect .set (rect .left , rect .top , rect .right , rect .bottom );
0 commit comments