aboutsummaryrefslogtreecommitdiff
path: root/mediapicker/src/main/kotlin/ca/allanwang
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2018-10-18 00:32:08 -0400
committerAllan Wang <me@allanwang.ca>2018-10-18 00:32:08 -0400
commit096172ead4674bffd5dd83eb994dd68ac48b88ae (patch)
tree7806e238993cb4370f385a5753d3a5ec8f6a5fbc /mediapicker/src/main/kotlin/ca/allanwang
parent5b3762b3e04042447b9bf2758c37237d0c8af1b6 (diff)
parent9dd6249d634c8b70d152907a4cda80da1626cddc (diff)
downloadkau-096172ead4674bffd5dd83eb994dd68ac48b88ae.tar.gz
kau-096172ead4674bffd5dd83eb994dd68ac48b88ae.tar.bz2
kau-096172ead4674bffd5dd83eb994dd68ac48b88ae.zip
Merge dev
Diffstat (limited to 'mediapicker/src/main/kotlin/ca/allanwang')
-rw-r--r--mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaPickerBinder.kt3
1 files changed, 1 insertions, 2 deletions
diff --git a/mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaPickerBinder.kt b/mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaPickerBinder.kt
index 87f5a42..50fe7ae 100644
--- a/mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaPickerBinder.kt
+++ b/mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaPickerBinder.kt
@@ -39,6 +39,5 @@ internal const val MEDIA_PICKER_RESULT = "media_picker_result"
internal const val ANIMATION_DURATION = 200L
internal const val ANIMATION_SCALE = 0.95f
-internal fun <T> RequestBuilder<T>.applyMediaOptions(context: Context)
- = apply(RequestOptions().diskCacheStrategy(DiskCacheStrategy.RESOURCE).centerCrop().override(MediaPickerCore.viewSize(context)))
+internal fun <T> RequestBuilder<T>.applyMediaOptions(context: Context) = apply(RequestOptions().diskCacheStrategy(DiskCacheStrategy.RESOURCE).centerCrop().override(MediaPickerCore.viewSize(context)))