mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-12-02 09:18:00 +01:00
always underline the "Change Filters" placeholder text
This commit is contained in:
parent
bf7b0d0386
commit
6aa597bdaf
2 changed files with 6 additions and 1 deletions
|
@ -1003,7 +1003,6 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
||||||
if (dirs.isEmpty() && config.filterMedia == TYPE_DEFAULT_FILTER) {
|
if (dirs.isEmpty() && config.filterMedia == TYPE_DEFAULT_FILTER) {
|
||||||
directories_empty_text_label.text = getString(R.string.no_media_add_included)
|
directories_empty_text_label.text = getString(R.string.no_media_add_included)
|
||||||
directories_empty_text.text = getString(R.string.add_folder)
|
directories_empty_text.text = getString(R.string.add_folder)
|
||||||
directories_empty_text.underlineText()
|
|
||||||
|
|
||||||
directories_empty_text.setOnClickListener {
|
directories_empty_text.setOnClickListener {
|
||||||
showAddIncludedFolderDialog {
|
showAddIncludedFolderDialog {
|
||||||
|
@ -1013,11 +1012,13 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
||||||
} else {
|
} else {
|
||||||
directories_empty_text_label.text = getString(R.string.no_media_with_filters)
|
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.text = getString(R.string.change_filters_underlined)
|
||||||
|
|
||||||
directories_empty_text.setOnClickListener {
|
directories_empty_text.setOnClickListener {
|
||||||
showFilterMediaDialog()
|
showFilterMediaDialog()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
directories_empty_text.underlineText()
|
||||||
directories_grid.beVisibleIf(directories_empty_text_label.isGone())
|
directories_grid.beVisibleIf(directories_empty_text_label.isGone())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -846,6 +846,10 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener {
|
||||||
media_refresh_layout.isRefreshing = false
|
media_refresh_layout.isRefreshing = false
|
||||||
media_empty_text_label.beVisibleIf(media.isEmpty() && !isFromCache)
|
media_empty_text_label.beVisibleIf(media.isEmpty() && !isFromCache)
|
||||||
media_empty_text.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())
|
media_grid.beVisibleIf(media_empty_text_label.isGone())
|
||||||
|
|
||||||
val viewType = config.getFolderViewType(if (mShowAll) SHOW_ALL else mPath)
|
val viewType = config.getFolderViewType(if (mShowAll) SHOW_ALL else mPath)
|
||||||
|
|
Loading…
Reference in a new issue