From 1e47a6dd2f417b9d4c6c0cdee5817a43c780571c Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 14 Dec 2018 22:43:06 +0100 Subject: [PATCH] properly measure scrollview at directories adapter setup --- .../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 39d5a7b85..33cc426fe 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 @@ -1032,11 +1032,11 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener { if (path != config.tempFolderPath) { itemClicked(path) } - measureRecyclerViewContent(dirsToShow) }.apply { setupZoomListener(mZoomListener) directories_grid.adapter = this } + measureRecyclerViewContent(dirsToShow) setupScrollDirection() } else { if (textToSearch.isNotEmpty()) {