scan the path of included folder, maybe it fixes it
This commit is contained in:
parent
d61f1d7d1b
commit
10a742bacd
1 changed files with 2 additions and 0 deletions
|
@ -5,6 +5,7 @@ import android.os.Bundle
|
||||||
import android.view.Menu
|
import android.view.Menu
|
||||||
import android.view.MenuItem
|
import android.view.MenuItem
|
||||||
import com.simplemobiletools.commons.dialogs.FilePickerDialog
|
import com.simplemobiletools.commons.dialogs.FilePickerDialog
|
||||||
|
import com.simplemobiletools.commons.extensions.scanPath
|
||||||
import com.simplemobiletools.gallery.R
|
import com.simplemobiletools.gallery.R
|
||||||
import com.simplemobiletools.gallery.extensions.config
|
import com.simplemobiletools.gallery.extensions.config
|
||||||
import kotlinx.android.synthetic.main.activity_included_folders.*
|
import kotlinx.android.synthetic.main.activity_included_folders.*
|
||||||
|
@ -55,6 +56,7 @@ class IncludedFoldersActivity : SimpleActivity() {
|
||||||
private fun addIncludedFolder() {
|
private fun addIncludedFolder() {
|
||||||
FilePickerDialog(this, pickFile = false, showHidden = config.showHiddenFolders) {
|
FilePickerDialog(this, pickFile = false, showHidden = config.showHiddenFolders) {
|
||||||
config.addIncludedFolder(it)
|
config.addIncludedFolder(it)
|
||||||
|
scanPath(it) {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue