fix a glitch at empty screen with direct subfolder grouping

This commit is contained in:
tibbi 2019-12-03 22:17:32 +01:00
parent ca8ab6f43e
commit f3168e5f97
2 changed files with 5 additions and 1 deletions

View file

@ -62,7 +62,7 @@ android {
} }
dependencies { 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 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
implementation 'androidx.multidex:multidex:2.0.1' implementation 'androidx.multidex:multidex:2.0.1'
implementation 'it.sephiroth.android.exif:library:1.0.1' implementation 'it.sephiroth.android.exif:library:1.0.1'

View file

@ -854,6 +854,10 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
} }
val dirs = getSortedDirectories(newDirs) val dirs = getSortedDirectories(newDirs)
if (config.groupDirectSubfolders) {
mDirs = dirs.clone() as ArrayList<Directory>
}
var isPlaceholderVisible = dirs.isEmpty() var isPlaceholderVisible = dirs.isEmpty()
runOnUiThread { runOnUiThread {