mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-17 04:20:38 +01:00
make sure we setup the scroll direction at main screen from the main thread
This commit is contained in:
parent
82ca23935a
commit
2789702ad7
@ -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…
x
Reference in New Issue
Block a user