From 49b1a2408916f50e22465d228c969395a0d47c4b Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 24 Apr 2018 09:30:51 +0200 Subject: [PATCH] do not show the No Media placeholders at first run --- .../com/simplemobiletools/gallery/activities/MainActivity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt index e43b63b56..ce85caaa2 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt @@ -553,8 +553,8 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener { var isPlaceholderVisible = dirs.isEmpty() runOnUiThread { - directories_empty_text_label.beVisibleIf(dirs.isEmpty()) - directories_empty_text.beVisibleIf(dirs.isEmpty()) + directories_empty_text_label.beVisibleIf(dirs.isEmpty() && config.appRunCount > 1) + directories_empty_text.beVisibleIf(dirs.isEmpty() && config.appRunCount > 1) directories_grid.beVisibleIf(directories_empty_text_label.isGone()) val allowHorizontalScroll = config.scrollHorizontally && config.viewTypeFiles == VIEW_TYPE_GRID