wrap Date Taken value fetching in try/catch block
This commit is contained in:
parent
304bcd37fc
commit
ad049ecb0b
1 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue