do not show the No Media placeholders at first run

This commit is contained in:
tibbi 2018-04-24 09:30:51 +02:00
parent 24f14fffc4
commit 49b1a24089

View file

@ -553,8 +553,8 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
var isPlaceholderVisible = dirs.isEmpty() var isPlaceholderVisible = dirs.isEmpty()
runOnUiThread { runOnUiThread {
directories_empty_text_label.beVisibleIf(dirs.isEmpty()) directories_empty_text_label.beVisibleIf(dirs.isEmpty() && config.appRunCount > 1)
directories_empty_text.beVisibleIf(dirs.isEmpty()) directories_empty_text.beVisibleIf(dirs.isEmpty() && config.appRunCount > 1)
directories_grid.beVisibleIf(directories_empty_text_label.isGone()) directories_grid.beVisibleIf(directories_empty_text_label.isGone())
val allowHorizontalScroll = config.scrollHorizontally && config.viewTypeFiles == VIEW_TYPE_GRID val allowHorizontalScroll = config.scrollHorizontally && config.viewTypeFiles == VIEW_TYPE_GRID