refresh items after moving

This commit is contained in:
tibbi 2021-02-25 21:32:44 +01:00
parent 724a08a904
commit 402c187f03

View file

@ -57,7 +57,7 @@ import java.util.zip.ZipOutputStream
class ItemsAdapter(activity: SimpleActivity, var listItems: MutableList<ListItem>, val listener: ItemOperationsListener?, recyclerView: MyRecyclerView,
val isPickMultipleIntent: Boolean, fastScroller: FastScroller?, val swipeRefreshLayout: SwipeRefreshLayout, itemClick: (Any) -> Unit) :
MyRecyclerViewAdapter(activity, recyclerView, fastScroller, itemClick) {
MyRecyclerViewAdapter(activity, recyclerView, fastScroller, itemClick) {
private val TYPE_FILE_DIR = 1
private val TYPE_SECTION = 2
@ -397,6 +397,9 @@ class ItemsAdapter(activity: SimpleActivity, var listItems: MutableList<ListItem
finishActMode()
}
}
} else {
listener?.refreshItems()
finishActMode()
}
}
} else {