mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
make cursor at retrieving Date Takens nullable
This commit is contained in:
@ -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 {
|
||||||
|
Reference in New Issue
Block a user