From f3168e5f97a2e8343c745ceb1fe5e1ce17a9f71f Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 3 Dec 2019 22:17:32 +0100 Subject: [PATCH] fix a glitch at empty screen with direct subfolder grouping --- app/build.gradle | 2 +- .../simplemobiletools/gallery/pro/activities/MainActivity.kt | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 2fc7eeeb3..c626d59d8 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -62,7 +62,7 @@ android { } dependencies { - implementation 'com.simplemobiletools:commons:5.20.3' + implementation 'com.simplemobiletools:commons:5.20.4' implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0' implementation 'androidx.multidex:multidex:2.0.1' implementation 'it.sephiroth.android.exif:library:1.0.1' 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 9469474f2..d38331114 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 @@ -854,6 +854,10 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener { } val dirs = getSortedDirectories(newDirs) + if (config.groupDirectSubfolders) { + mDirs = dirs.clone() as ArrayList + } + var isPlaceholderVisible = dirs.isEmpty() runOnUiThread {