replace some toList calls with toMutableList, for proper casting if empty

This commit is contained in:
tibbi
2018-07-04 11:39:19 +02:00
parent 7d44532320
commit a6cc35fc97
4 changed files with 6 additions and 6 deletions

View File

@@ -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()) {