make cursor at retrieving Date Takens nullable
This commit is contained in:
parent
79aa2306be
commit
dddfea3b1e
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue