mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-22 20:48:00 +01:00
make sure we update the adapter on the main thread
This commit is contained in:
parent
81276cb878
commit
a9bbe65999
1 changed files with 3 additions and 1 deletions
|
@ -984,7 +984,9 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
|||
}
|
||||
}.apply {
|
||||
setupZoomListener(mZoomListener)
|
||||
directories_grid.adapter = this
|
||||
runOnUiThread {
|
||||
directories_grid.adapter = this
|
||||
}
|
||||
}
|
||||
measureRecyclerViewContent(dirsToShow)
|
||||
setupScrollDirection()
|
||||
|
|
Loading…
Reference in a new issue