wrap Date Taken value fetching in try/catch block

This commit is contained in:
tibbi 2020-10-24 10:06:21 +02:00
parent 304bcd37fc
commit ad049ecb0b

View file

@ -487,15 +487,15 @@ class MediaFetcher(val context: Context) {
} catch (e: Exception) {
}
}
val dateTakenValues = context.dateTakensDB.getAllDateTakens()
dateTakenValues.forEach {
dateTakens[it.fullPath] = it.taken
}
} catch (e: Exception) {
}
val dateTakenValues = context.dateTakensDB.getAllDateTakens()
dateTakenValues.forEach {
dateTakens[it.fullPath] = it.taken
}
return dateTakens
}