mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 11:49:04 +01:00
Merge branch '327-empty-state-design' into 'master'
Simple Empty State Messages This MR implements very basic and simple empty state messages for the current features. This is how it looks (note that the contact add FAB will be removed soon):     Closes #327 See merge request !236
This commit is contained in:
@@ -44,7 +44,7 @@ public class ContactListAdapter
|
||||
|
||||
// date of last message
|
||||
if (item.isEmpty()) {
|
||||
ui.date.setText(R.string.no_private_messages);
|
||||
ui.date.setText(R.string.date_no_private_messages);
|
||||
} else {
|
||||
long timestamp = item.getTimestamp();
|
||||
ui.date.setText(AndroidUtils.formatDate(ctx, timestamp));
|
||||
|
||||
@@ -110,6 +110,7 @@ public class ForumActivity extends BriarActivity implements
|
||||
(BriarRecyclerView) findViewById(R.id.forum_discussion_list);
|
||||
linearLayoutManager = new LinearLayoutManager(this);
|
||||
recyclerView.setLayoutManager(linearLayoutManager);
|
||||
recyclerView.setEmptyText(getString(R.string.no_forum_posts));
|
||||
recyclerView.showProgressBar();
|
||||
|
||||
forumController
|
||||
|
||||
Reference in New Issue
Block a user