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() { private fun columnCountChanged() {
invalidateOptionsMenu() invalidateOptionsMenu()
launchers_grid.adapter?.notifyDataSetChanged() getGridAdapter()?.apply {
getGridAdapter()?.launchers?.apply { notifyItemRangeChanged(0, launchers.size)
calculateContentHeight(this) calculateContentHeight(launchers)
} }
} }