diff --git a/cropper/src/main/kotlin/com/canhub/cropper/CropImageView.kt b/cropper/src/main/kotlin/com/canhub/cropper/CropImageView.kt index 6b84f63c..d9426d86 100644 --- a/cropper/src/main/kotlin/com/canhub/cropper/CropImageView.kt +++ b/cropper/src/main/kotlin/com/canhub/cropper/CropImageView.kt @@ -90,6 +90,7 @@ class CropImageView @JvmOverloads constructor( * If false the bitmap is not saved and if restore is required to view will be empty, storing the * bitmap requires saving it to file which can be expensive. default: false. */ + @Deprecated("This functionality is deprecated, please remove it altogether or create an issue and explain WHY you need this.") var isSaveBitmapToInstanceState = false /** @@ -1082,7 +1083,7 @@ class CropImageView @JvmOverloads constructor( } val bundle = Bundle() - val loadedImageUri = + @Suppress("DEPRECATION") val loadedImageUri = if (isSaveBitmapToInstanceState && imageUri == null && mImageResource < 1) { BitmapUtils.writeTempStateStoreBitmap( context = context, @@ -1805,6 +1806,7 @@ class CropImageView @JvmOverloads constructor( val a = context.obtainStyledAttributes(attrs, R.styleable.CropImageView, 0, 0) val default = CropImageOptions() try { + @Suppress("DEPRECATION") isSaveBitmapToInstanceState = a.getBoolean(R.styleable.CropImageView_cropSaveBitmapToInstanceState, isSaveBitmapToInstanceState) CropImageOptions(