make sure we setup the scroll direction at main screen from the main thread
This commit is contained in:
parent
82ca23935a
commit
2789702ad7
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue