Skip to content

Commit be60bad

Browse files
committed
update pic cache logic
1 parent bab52b8 commit be60bad

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pickphotoview/src/main/java/com/werb/pickphotoview/util/GlideHelper.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ object GlideHelper {
1717
.placeholder(R.color.pick_placeholder)
1818
.error(R.color.pick_placeholder)
1919
.priority(Priority.LOW)
20-
.diskCacheStrategy(DiskCacheStrategy.NONE)
20+
.diskCacheStrategy(DiskCacheStrategy.AUTOMATIC)
2121
}
2222

2323
}

pickphotoview/src/main/java/com/werb/pickphotoview/widget/PreviewImage.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ class PreviewImage : FrameLayout {
2626

2727
private val images = PickPhotoHelper.selectImages
2828

29-
3029
constructor(context: Context?) : super(context)
3130
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs)
3231
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(context, attrs, defStyleAttr)

0 commit comments

Comments
 (0)