From 8e4aa5b438b7592ec99a89ff533d9da62ca410ae Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 24 Jun 2018 18:11:30 +0200 Subject: [PATCH] do not remeasure recyclerview size at column count change, we set it manually --- .../com/simplemobiletools/gallery/activities/MediaActivity.kt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt index a24de85c4..d28e528a3 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt @@ -649,8 +649,6 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener { } private fun increaseColumnCount() { - media_vertical_fastscroller.measureRecyclerViewOnRedraw() - media_horizontal_fastscroller.measureRecyclerViewOnRedraw() config.mediaColumnCnt = ++(media_grid.layoutManager as MyGridLayoutManager).spanCount invalidateOptionsMenu() media_grid.adapter?.notifyDataSetChanged() @@ -658,8 +656,6 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener { } private fun reduceColumnCount() { - media_vertical_fastscroller.measureRecyclerViewOnRedraw() - media_horizontal_fastscroller.measureRecyclerViewOnRedraw() config.mediaColumnCnt = --(media_grid.layoutManager as MyGridLayoutManager).spanCount invalidateOptionsMenu() media_grid.adapter?.notifyDataSetChanged()