mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-01-21 02:45:24 +01:00
lets show some error messages during file fetching
This commit is contained in:
parent
c93705ebef
commit
4595f6549a
@ -60,6 +60,7 @@ class MediaFetcher(val context: Context) {
|
||||
val includedPaths = config.includedFolders
|
||||
folders.filter { it.shouldFolderBeVisible(excludedPaths, includedPaths, shouldShowHidden) }.toMutableList() as ArrayList<String>
|
||||
} catch (e: Exception) {
|
||||
context.showErrorToast(e)
|
||||
ArrayList()
|
||||
}
|
||||
}
|
||||
@ -78,6 +79,8 @@ class MediaFetcher(val context: Context) {
|
||||
parents.add(path.getParentPath())
|
||||
} while (cursor.moveToNext())
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
context.showErrorToast(e)
|
||||
} finally {
|
||||
cursor?.close()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user