Skip to content

Commit c8fc28c

Browse files
authored
API: Deprecate CropImageView.isSaveBitmapToInstanceState (#518)
1 parent 16ef47d commit c8fc28c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

cropper/src/main/kotlin/com/canhub/cropper/CropImageView.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ class CropImageView @JvmOverloads constructor(
9090
* If false the bitmap is not saved and if restore is required to view will be empty, storing the
9191
* bitmap requires saving it to file which can be expensive. default: false.
9292
*/
93+
@Deprecated("This functionality is deprecated, please remove it altogether or create an issue and explain WHY you need this.")
9394
var isSaveBitmapToInstanceState = false
9495

9596
/**
@@ -1084,7 +1085,7 @@ class CropImageView @JvmOverloads constructor(
10841085
}
10851086

10861087
val bundle = Bundle()
1087-
val loadedImageUri =
1088+
@Suppress("DEPRECATION") val loadedImageUri =
10881089
if (isSaveBitmapToInstanceState && imageUri == null && mImageResource < 1) {
10891090
BitmapUtils.writeTempStateStoreBitmap(
10901091
context = context,
@@ -1807,6 +1808,7 @@ class CropImageView @JvmOverloads constructor(
18071808
val a = context.obtainStyledAttributes(attrs, R.styleable.CropImageView, 0, 0)
18081809
val default = CropImageOptions()
18091810
try {
1811+
@Suppress("DEPRECATION")
18101812
isSaveBitmapToInstanceState = a.getBoolean(R.styleable.CropImageView_cropSaveBitmapToInstanceState, isSaveBitmapToInstanceState)
18111813

18121814
CropImageOptions(

0 commit comments

Comments
 (0)