aboutsummaryrefslogtreecommitdiff
path: root/mediapicker
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-08-16 00:11:37 -0700
committerGitHub <noreply@github.com>2019-08-16 00:11:37 -0700
commita9407288fad0d30e71e2f6862b66533e043f9311 (patch)
treea357e6cd419123d69ca5d2977c8ce839c56f3d87 /mediapicker
parent807a3661e4d234c525ea855ebb7a43a02d5184a1 (diff)
parent5aefeee08f68777dd07a16bd42a7d2392db6bbc9 (diff)
downloadkau-a9407288fad0d30e71e2f6862b66533e043f9311.tar.gz
kau-a9407288fad0d30e71e2f6862b66533e043f9311.tar.bz2
kau-a9407288fad0d30e71e2f6862b66533e043f9311.zip
Merge pull request #225 from AllanWang/versions
Versions
Diffstat (limited to 'mediapicker')
-rw-r--r--mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaItemBasic.kt2
-rw-r--r--mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaPickerCore.kt6
2 files changed, 4 insertions, 4 deletions
diff --git a/mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaItemBasic.kt b/mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaItemBasic.kt
index 873289f..e801848 100644
--- a/mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaItemBasic.kt
+++ b/mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaItemBasic.kt
@@ -40,7 +40,7 @@ class MediaItemBasic(val data: MediaModel) :
@SuppressLint("NewApi")
fun bindEvents(activity: Activity, fastAdapter: FastAdapter<MediaItemBasic>) {
fastAdapter.getSelectExtension().isSelectable = true
- //add image data and return right away
+ // add image data and return right away
fastAdapter.onClickListener = { _, _, item, _ ->
activity.finish(arrayListOf(item.data))
true
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 dceb1df..9b8bdfa 100644
--- a/mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaPickerCore.kt
+++ b/mediapicker/src/main/kotlin/ca/allanwang/kau/mediapicker/MediaPickerCore.kt
@@ -157,7 +157,7 @@ abstract class MediaPickerCore<T : GenericItem>(
}
}
- //Sort by descending date
+ // Sort by descending date
var sortQuery = MediaStore.MediaColumns.DATE_MODIFIED + " DESC"
override fun onCreateLoader(id: Int, args: Bundle?): Loader<Cursor> {
@@ -264,8 +264,8 @@ abstract class MediaPickerCore<T : GenericItem>(
}.mapNotNull {
DocumentsContract.getDocumentId(it).split(":").getOrNull(1)
}.joinToString(prefix = "(", separator = ",", postfix = ")")
- //? query replacements are done for one arg at a time
- //since we potentially have a list of ids, we'll just format the WHERE clause ourself
+ // ? query replacements are done for one arg at a time
+ // since we potentially have a list of ids, we'll just format the WHERE clause ourself
query(baseUri, MediaModel.projection, "${BaseColumns._ID} IN $ids", null, sortQuery)?.use(
block
)