From 2789702ad7f589f70a935d36254d8691f6630ae0 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 18 Dec 2018 10:02:35 +0100 Subject: [PATCH] make sure we setup the scroll direction at main screen from the main thread --- .../simplemobiletools/gallery/pro/activities/MainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt index eab222979..ad9ef43f1 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/MainActivity.kt @@ -986,10 +986,10 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener { setupZoomListener(mZoomListener) runOnUiThread { directories_grid.adapter = this + setupScrollDirection() } } measureRecyclerViewContent(dirsToShow) - setupScrollDirection() } else { if (textToSearch.isNotEmpty()) { dirsToShow = dirsToShow.filter { it.name.contains(textToSearch, true) }.sortedBy { !it.name.startsWith(textToSearch, true) }.toMutableList() as ArrayList