mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-30 08:18:00 +01:00
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) {
|
} catch (e: Exception) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val dateTakenValues = context.dateTakensDB.getAllDateTakens()
|
||||||
|
|
||||||
|
dateTakenValues.forEach {
|
||||||
|
dateTakens[it.fullPath] = it.taken
|
||||||
|
}
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
}
|
}
|
||||||
|
|
||||||
val dateTakenValues = context.dateTakensDB.getAllDateTakens()
|
|
||||||
|
|
||||||
dateTakenValues.forEach {
|
|
||||||
dateTakens[it.fullPath] = it.taken
|
|
||||||
}
|
|
||||||
|
|
||||||
return dateTakens
|
return dateTakens
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue