mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
replace some toList calls with toMutableList, for proper casting if empty
This commit is contained in:
@@ -114,7 +114,7 @@ class MediaFetcher(val context: Context) {
|
||||
val foldersToIgnore = arrayListOf("/storage/emulated/legacy")
|
||||
val config = context.config
|
||||
val includedFolders = config.includedFolders
|
||||
var foldersToScan = config.everShownFolders.toList() as ArrayList
|
||||
var foldersToScan = config.everShownFolders.toMutableList() as ArrayList
|
||||
|
||||
cursor.use {
|
||||
if (cursor.moveToFirst()) {
|
||||
|
||||
Reference in New Issue
Block a user