3530: Provide a help text on the empty conversations view (#3531)
Fixes #3530
This commit is contained in:
commit
5f0f4b82b9
4 changed files with 15 additions and 0 deletions
|
|
@ -192,6 +192,7 @@ class ListsActivity : BaseActivity(), Injectable, HasAndroidInjector {
|
|||
R.string.message_empty,
|
||||
null
|
||||
)
|
||||
binding.messageView.showHelp(R.string.help_empty_lists)
|
||||
} else {
|
||||
binding.messageView.hide()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -134,6 +134,7 @@ class ConversationsFragment :
|
|||
if (loadState.append is LoadState.NotLoading && loadState.source.refresh is LoadState.NotLoading) {
|
||||
binding.statusView.show()
|
||||
binding.statusView.setup(R.drawable.elephant_friend_empty, R.string.message_empty, null)
|
||||
binding.statusView.showHelp(R.string.help_empty_conversations)
|
||||
}
|
||||
}
|
||||
is LoadState.Error -> {
|
||||
|
|
|
|||
|
|
@ -61,6 +61,7 @@ class BackgroundMessageView @JvmOverloads constructor(
|
|||
binding.imageView.setImageResource(imageRes)
|
||||
binding.button.setOnClickListener(clickListener)
|
||||
binding.button.visible(clickListener != null)
|
||||
binding.helpText.visible(false)
|
||||
}
|
||||
|
||||
fun showHelp(@StringRes helpRes: Int) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue