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 | |
parent | 274e10fab9a7ee1a7f1934d1f07bd5cffdc84c1b (diff) | |
download | kau-4c4996e0ead6c415e96dd19f1390140e59bb98a4.tar.gz kau-4c4996e0ead6c415e96dd19f1390140e59bb98a4.tar.bz2 kau-4c4996e0ead6c415e96dd19f1390140e59bb98a4.zip |
Fix tests and prepare next release4.0.0-alpha02
4 files changed, 4 insertions, 2 deletions
diff --git a/core/src/main/kotlin/ca/allanwang/kau/email/EmailBuilder.kt b/core/src/main/kotlin/ca/allanwang/kau/email/EmailBuilder.kt index e6ad97a..1f959ab 100644 --- a/core/src/main/kotlin/ca/allanwang/kau/email/EmailBuilder.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/email/EmailBuilder.kt @@ -90,6 +90,7 @@ class EmailBuilder(val email: String, val subject: String) { val versionCode = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) { appInfo.longVersionCode.toString() } else { + @Suppress("DEPRECATION") appInfo.versionCode.toString() } emailBuilder.append("\nApp: ").append(context.packageName) diff --git a/docs/Changelog.md b/docs/Changelog.md index 7291753..021a0f1 100644 --- a/docs/Changelog.md +++ b/docs/Changelog.md @@ -1,6 +1,7 @@ # Changelog ## v4.0.0-alpha02 +* Update translations * :core: Remove anko dependency. Methods that used it now use coroutines; see the migration doc for minor changes * :core: Add default CoroutineScope implementation to KauBaseActivity * :core: Remove zip class. Coroutines and join can be used as an alternative 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) diff --git a/sample/src/main/res/xml/kau_changelog.xml b/sample/src/main/res/xml/kau_changelog.xml index 570a0b9..be1c023 100644 --- a/sample/src/main/res/xml/kau_changelog.xml +++ b/sample/src/main/res/xml/kau_changelog.xml @@ -7,6 +7,7 @@ --> <version title="v4.0.0-alpha02" /> + <item text="Update translations" /> <item text=":core: Remove anko dependency. Methods that used it now use coroutines; see the migration doc for minor changes" /> <item text=":core: Add default CoroutineScope implementation to KauBaseActivity" /> <item text=":core: Remove zip class. Coroutines and join can be used as an alternative" /> @@ -14,7 +15,6 @@ <item text=":core: Introduce ContextHelper, where you can get the default looper, handler, and dispatcher for Android" /> <item text=":mediapicker: Use video preloading instead of full async loading" /> <item text="" /> - <item text="" /> <version title="v4.0.0-alpha01" /> <item text="Migrate to androidx. See migration for external dependency changes." /> |