mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2025-01-31 12:16:44 +01:00
adding a hackfix for disappearing recyclerview content
This commit is contained in:
parent
bc454195ce
commit
2273fead3e
1 changed files with 5 additions and 0 deletions
|
@ -1094,6 +1094,11 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
||||||
measureRecyclerViewContent(dirsToShow)
|
measureRecyclerViewContent(dirsToShow)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// recyclerview sometimes becomes empty at init/update, triggering an invisible refresh like this seems to work fine
|
||||||
|
directories_grid.postDelayed({
|
||||||
|
directories_grid.scrollBy(0, 0)
|
||||||
|
}, 500)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun setupScrollDirection() {
|
private fun setupScrollDirection() {
|
||||||
|
|
Loading…
Reference in a new issue