Move thread action to the right and show if available only

This commit is contained in:
M66B
2018-08-03 13:57:57 +00:00
parent dabf802d84
commit 8ac235791f
3 changed files with 9 additions and 7 deletions

View File

@@ -240,6 +240,8 @@ public class FragmentMessage extends Fragment {
db.attachment().liveAttachments(id).removeObservers(FragmentMessage.this);
db.attachment().liveAttachments(id).observe(FragmentMessage.this, attachmentsObserver);
top_navigation.getMenu().findItem(R.id.action_thread).setVisible(message.count > 1);
MenuItem actionSeen = top_navigation.getMenu().findItem(R.id.action_seen);
actionSeen.setIcon(message.ui_seen
? R.drawable.baseline_visibility_off_24