3408 home help message (#3415)
* 3408: First draft of help message on empty home timeline * 3408: Move image spanning to utils; tweak gui a bit (looks like status) * 3408: Use proper R again; appease linter * 3408: Add doc; remove narrow comment * 3408: null is default * 3408: Add German text * 3408: Stack refresh animation on top of help message (reorder)
This commit is contained in:
parent
9484a8b2b9
commit
182df2bfae
9 changed files with 200 additions and 93 deletions
|
|
@ -236,6 +236,9 @@ class TimelineFragment :
|
|||
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)
|
||||
if (kind == TimelineViewModel.Kind.HOME) {
|
||||
binding.statusView.showHelp(R.string.help_empty_home)
|
||||
}
|
||||
}
|
||||
}
|
||||
is LoadState.Error -> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue