make sure we setup the scroll direction at main screen from the main thread

This commit is contained in:
tibbi 2018-12-18 10:02:35 +01:00
parent 82ca23935a
commit 2789702ad7

View file

@ -986,10 +986,10 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
setupZoomListener(mZoomListener)
runOnUiThread {
directories_grid.adapter = this
setupScrollDirection()
}
}
measureRecyclerViewContent(dirsToShow)
setupScrollDirection()
} else {
if (textToSearch.isNotEmpty()) {
dirsToShow = dirsToShow.filter { it.name.contains(textToSearch, true) }.sortedBy { !it.name.startsWith(textToSearch, true) }.toMutableList() as ArrayList