From 72c61545d88766d1b395a3cf8ca46b31874938d6 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 11 May 2018 10:59:42 +0200 Subject: [PATCH] remeasure fastscroller if thumbnail data changes --- .../com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt | 1 + .../com/simplemobiletools/gallery/adapters/MediaAdapter.kt | 1 + 2 files changed, 2 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt index 06d14443c..bafe21398 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/DirectoryAdapter.kt @@ -400,6 +400,7 @@ class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: ArrayList notifyDataSetChanged() finishActMode() + fastScroller?.measureRecyclerView() } } diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt index a20c58a82..89dcb9ff1 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt @@ -260,6 +260,7 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: MutableList, enableInstantLoad() notifyDataSetChanged() finishActMode() + fastScroller?.measureRecyclerView() }, 100L) } }