mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +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,8 +984,10 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
||||||
}
|
}
|
||||||
}.apply {
|
}.apply {
|
||||||
setupZoomListener(mZoomListener)
|
setupZoomListener(mZoomListener)
|
||||||
|
runOnUiThread {
|
||||||
directories_grid.adapter = this
|
directories_grid.adapter = this
|
||||||
}
|
}
|
||||||
|
}
|
||||||
measureRecyclerViewContent(dirsToShow)
|
measureRecyclerViewContent(dirsToShow)
|
||||||
setupScrollDirection()
|
setupScrollDirection()
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue