aboutsummaryrefslogtreecommitdiff
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
parent274e10fab9a7ee1a7f1934d1f07bd5cffdc84c1b (diff)
downloadkau-4c4996e0ead6c415e96dd19f1390140e59bb98a4.tar.gz
kau-4c4996e0ead6c415e96dd19f1390140e59bb98a4.tar.bz2
kau-4c4996e0ead6c415e96dd19f1390140e59bb98a4.zip
Fix tests and prepare next release4.0.0-alpha02
-rw-r--r--core/src/main/kotlin/ca/allanwang/kau/email/EmailBuilder.kt1
-rw-r--r--docs/Changelog.md1
-rw-r--r--mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaPickerCore.kt2
-rw-r--r--sample/src/main/res/xml/kau_changelog.xml2
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." />