make cursor at retrieving Date Takens nullable

This commit is contained in:
tibbi 2018-06-17 21:54:44 +02:00
parent 79aa2306be
commit dddfea3b1e

View file

@ -285,7 +285,7 @@ class MediaFetcher(val context: Context) {
val dateTakens = HashMap<String, Long>() val dateTakens = HashMap<String, Long>()
val cursor = context.contentResolver.query(uri, projection, selection, selectionArgs, null) val cursor = context.contentResolver.query(uri, projection, selection, selectionArgs, null)
cursor.use { cursor?.use {
if (cursor.moveToFirst()) { if (cursor.moveToFirst()) {
do { do {
try { try {