aboutsummaryrefslogtreecommitdiff
path: root/mediapicker
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-01-05 22:46:03 -0500
committerAllan Wang <me@allanwang.ca>2019-01-05 22:46:03 -0500
commit4c4996e0ead6c415e96dd19f1390140e59bb98a4 (patch)
tree26bed620ca88d34c534943b5b8ecfb38c6945b5e /mediapicker
parent274e10fab9a7ee1a7f1934d1f07bd5cffdc84c1b (diff)
downloadkau-4.0.0-alpha02.tar.gz
kau-4.0.0-alpha02.tar.bz2
kau-4.0.0-alpha02.zip
Fix tests and prepare next release4.0.0-alpha02
Diffstat (limited to 'mediapicker')
-rw-r--r--mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaPickerCore.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaPickerCore.kt b/mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaPickerCore.kt
index 7004967..e6556ab 100644
--- a/mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaPickerCore.kt
+++ b/mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaPickerCore.kt
@@ -166,7 +166,7 @@ abstract class MediaPickerCore<T : IItem<*, *>>(
open fun loadItems() {
kauRequestPermissions(Manifest.permission.READ_EXTERNAL_STORAGE) { granted, _ ->
if (granted) {
- supportLoaderManager.initLoader(LOADER_ID, null, this)
+ LoaderManager.getInstance(this).initLoader(LOADER_ID, null, this)
onStatusChange(true)
} else {
toast(R.string.kau_permission_denied)