Update Timestamps Every Minute

Closes #455
This commit is contained in:
Torsten Grote
2016-07-04 17:06:41 -03:00
parent 759b1c7448
commit bc0b226fff
7 changed files with 54 additions and 12 deletions

View File

@@ -121,6 +121,7 @@ public class ForumActivity extends BriarActivity implements
forumAdapter = new ForumAdapter(
forumController.getForumEntries());
recyclerView.setAdapter(forumAdapter);
recyclerView.periodicallyUpdateContent();
if (state != null) {
byte[] replyId =
state.getByteArray(KEY_REPLY_ID);

View File

@@ -86,6 +86,7 @@ public class ForumListFragment extends BaseEventFragment implements
list.setLayoutManager(new LinearLayoutManager(getActivity()));
list.setAdapter(adapter);
list.setEmptyText(getString(R.string.no_forums));
list.periodicallyUpdateContent();
snackbar = Snackbar.make(list, "", LENGTH_INDEFINITE);
snackbar.getView().setBackgroundResource(R.color.briar_primary);