From 657021b67e725a9151c848f414f2b7ee5c5430b6 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 29 Nov 2021 22:53:11 +0100 Subject: [PATCH] fixing a glitch with folder thumbnails at using search --- .../simplemobiletools/gallery/pro/activities/MainActivity.kt | 2 ++ app/src/main/res/layout/activity_main.xml | 1 - 2 files changed, 2 insertions(+), 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 ebfcdcd1b..92b1ba9bc 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 @@ -627,6 +627,8 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener { } else { setupListLayoutManager() } + + (directories_refresh_layout.layoutParams as RelativeLayout.LayoutParams).addRule(RelativeLayout.BELOW, R.id.directories_switch_searching) } private fun setupGridLayoutManager() { diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 8821e6816..b500e9c62 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -58,7 +58,6 @@ android:id="@+id/directories_grid" android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_below="@+id/directories_switch_searching" android:layoutAnimation="@anim/layout_animation" android:scrollbars="none" app:layoutManager="com.simplemobiletools.commons.views.MyGridLayoutManager"