mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
trim folder slashes before updating their items
This commit is contained in:
parent
0552c12d17
commit
5c0f33f38f
1 changed files with 1 additions and 1 deletions
|
@ -248,7 +248,7 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: MutableList<Medium>,
|
||||||
private fun updateStoredFolderItems() {
|
private fun updateStoredFolderItems() {
|
||||||
Thread {
|
Thread {
|
||||||
if (media.isNotEmpty()) {
|
if (media.isNotEmpty()) {
|
||||||
activity.applicationContext.storeFolderItems(media.first().path.getParentPath(), media as ArrayList<Medium>)
|
activity.applicationContext.storeFolderItems(media.first().path.getParentPath().trimEnd('/'), media as ArrayList<Medium>)
|
||||||
}
|
}
|
||||||
}.start()
|
}.start()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue