adding a hackfix for disappearing recyclerview content

This commit is contained in:
tibbi 2018-12-16 22:00:46 +01:00
parent bc454195ce
commit 2273fead3e
1 changed files with 5 additions and 0 deletions

View File

@ -1094,6 +1094,11 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
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() {