mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-17 12:30:36 +01:00
make cursor at retrieving Date Takens nullable
This commit is contained in:
parent
79aa2306be
commit
dddfea3b1e
@ -285,7 +285,7 @@ class MediaFetcher(val context: Context) {
|
||||
|
||||
val dateTakens = HashMap<String, Long>()
|
||||
val cursor = context.contentResolver.query(uri, projection, selection, selectionArgs, null)
|
||||
cursor.use {
|
||||
cursor?.use {
|
||||
if (cursor.moveToFirst()) {
|
||||
do {
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user