animate column count changes

This commit is contained in:
tibbi 2021-02-05 22:52:38 +01:00
parent b98d9c0cd8
commit 12aca5d182

View File

@ -180,9 +180,9 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
private fun columnCountChanged() {
invalidateOptionsMenu()
launchers_grid.adapter?.notifyDataSetChanged()
getGridAdapter()?.launchers?.apply {
calculateContentHeight(this)
getGridAdapter()?.apply {
notifyItemRangeChanged(0, launchers.size)
calculateContentHeight(launchers)
}
}