diff options
author | Allan Wang <me@allanwang.ca> | 2019-01-05 22:46:03 -0500 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2019-01-05 22:46:03 -0500 |
commit | 4c4996e0ead6c415e96dd19f1390140e59bb98a4 (patch) | |
tree | 26bed620ca88d34c534943b5b8ecfb38c6945b5e /mediapicker/src/main/kotlin/ca | |
parent | 274e10fab9a7ee1a7f1934d1f07bd5cffdc84c1b (diff) | |
download | kau-4c4996e0ead6c415e96dd19f1390140e59bb98a4.tar.gz kau-4c4996e0ead6c415e96dd19f1390140e59bb98a4.tar.bz2 kau-4c4996e0ead6c415e96dd19f1390140e59bb98a4.zip |
Fix tests and prepare next release4.0.0-alpha02
Diffstat (limited to 'mediapicker/src/main/kotlin/ca')
-rw-r--r-- | mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaPickerCore.kt | 2 |
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) |