@@ -1815,10 +1815,10 @@ class CropImageView @JvmOverloads constructor(
18151815 isSaveBitmapToInstanceState = a.getBoolean(R .styleable.CropImageView_cropSaveBitmapToInstanceState , isSaveBitmapToInstanceState)
18161816
18171817 CropImageOptions (
1818- scaleType = ScaleType .values() [a.getInt(R .styleable.CropImageView_cropScaleType , default.scaleType.ordinal)],
1819- cropShape = CropShape .values() [a.getInt(R .styleable.CropImageView_cropShape , default.cropShape.ordinal)],
1820- cornerShape = CropCornerShape .values() [a.getInt(R .styleable.CropImageView_cornerShape , default.cornerShape.ordinal)],
1821- guidelines = Guidelines .values() [a.getInt(R .styleable.CropImageView_cropGuidelines , default.guidelines.ordinal)],
1818+ scaleType = ScaleType .entries [a.getInt(R .styleable.CropImageView_cropScaleType , default.scaleType.ordinal)],
1819+ cropShape = CropShape .entries [a.getInt(R .styleable.CropImageView_cropShape , default.cropShape.ordinal)],
1820+ cornerShape = CropCornerShape .entries [a.getInt(R .styleable.CropImageView_cornerShape , default.cornerShape.ordinal)],
1821+ guidelines = Guidelines .entries [a.getInt(R .styleable.CropImageView_cropGuidelines , default.guidelines.ordinal)],
18221822 aspectRatioX = a.getInteger(R .styleable.CropImageView_cropAspectRatioX , default.aspectRatioX),
18231823 aspectRatioY = a.getInteger(R .styleable.CropImageView_cropAspectRatioY , default.aspectRatioY),
18241824 autoZoomEnabled = a.getBoolean(R .styleable.CropImageView_cropAutoZoomEnabled , default.autoZoomEnabled),
0 commit comments