mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-09 08:38:40 +01:00
wrap Date Taken value fetching in try/catch block
This commit is contained in:
parent
304bcd37fc
commit
ad049ecb0b
@ -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…
x
Reference in New Issue
Block a user