diff options
author | Christian S <christian@pix-art.de> | 2015-10-19 21:33:29 +0200 |
---|---|---|
committer | Christian S <christian@pix-art.de> | 2015-10-19 21:33:29 +0200 |
commit | 7a99e13462fde47d07719153ce74fe78381a764b (patch) | |
tree | 54a51e5ffa6d9846a875634e2f0de7b237f752a8 /src/main/java | |
parent | bee03c3f77bdb76e07261a0474d4143125fed276 (diff) |
show lastseen as subtitle in chatview
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/eu/siacs/conversations/ui/ConversationActivity.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java b/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java index b3765a080..451dd41ee 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java @@ -54,6 +54,7 @@ import eu.siacs.conversations.services.XmppConnectionService.OnConversationUpdat import eu.siacs.conversations.services.XmppConnectionService.OnRosterUpdate; import eu.siacs.conversations.ui.adapter.ConversationAdapter; import eu.siacs.conversations.utils.ExceptionHelper; +import eu.siacs.conversations.utils.UIHelper; import eu.siacs.conversations.xmpp.OnUpdateBlocklist; import eu.siacs.conversations.xmpp.chatstate.ChatState; import eu.siacs.conversations.xmpp.jid.InvalidJidException; @@ -370,9 +371,9 @@ public class ConversationActivity extends XmppActivity if (state == ChatState.COMPOSING) { ab.setSubtitle(getString(R.string.is_typing)); } else if (state == ChatState.PAUSED) { - ab.setSubtitle(null); + ab.setSubtitle(UIHelper.lastseen(getApplicationContext(), conversation.getContact().lastseen.time)); } else { - ab.setSubtitle(null); + ab.setSubtitle(UIHelper.lastseen(getApplicationContext(), conversation.getContact().lastseen.time)); } } else if (useSubjectToIdentifyConference()){ ab.setSubtitle(conversation.getParticipants()); |