always underline the "Change Filters" placeholder text

This commit is contained in:
tibbi 2019-06-24 00:13:32 +02:00
parent bf7b0d0386
commit 6aa597bdaf
2 changed files with 6 additions and 1 deletions

View file

@ -1003,7 +1003,6 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
if (dirs.isEmpty() && config.filterMedia == TYPE_DEFAULT_FILTER) {
directories_empty_text_label.text = getString(R.string.no_media_add_included)
directories_empty_text.text = getString(R.string.add_folder)
directories_empty_text.underlineText()
directories_empty_text.setOnClickListener {
showAddIncludedFolderDialog {
@ -1013,11 +1012,13 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
} else {
directories_empty_text_label.text = getString(R.string.no_media_with_filters)
directories_empty_text.text = getString(R.string.change_filters_underlined)
directories_empty_text.setOnClickListener {
showFilterMediaDialog()
}
}
directories_empty_text.underlineText()
directories_grid.beVisibleIf(directories_empty_text_label.isGone())
}

View file

@ -846,6 +846,10 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener {
media_refresh_layout.isRefreshing = false
media_empty_text_label.beVisibleIf(media.isEmpty() && !isFromCache)
media_empty_text.beVisibleIf(media.isEmpty() && !isFromCache)
if (media_empty_text_label.isVisible()) {
media_empty_text_label.text = getString(R.string.no_media_with_filters)
}
media_grid.beVisibleIf(media_empty_text_label.isGone())
val viewType = config.getFolderViewType(if (mShowAll) SHOW_ALL else mPath)