Skip to content

Commit

Permalink
Merge branch 'master' into xmpp_position (#51)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Cappelli <[email protected]>
  • Loading branch information
sw1ftc0d3r committed Mar 18, 2014
2 parents 25c8720 + 98a3470 commit 83bede3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/org/kontalk/ui/ConversationListFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ public void onSaveInstanceState(Bundle outState) {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

setRetainInstance(true);
setHasOptionsMenu(true);
}

Expand Down
3 changes: 2 additions & 1 deletion src/org/kontalk/util/MessageUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,8 @@ else if ((securityFlags & Coder.SECURITY_ERROR_PUBLIC_KEY_UNAVAILABLE) != 0) {
case Messages.STATUS_RECEIVED:
case Messages.STATUS_NOTDELIVERED:
resId = R.string.sent_label;
timestamp = msg.getTimestamp();
long serverTime = msg.getServerTimestamp();
timestamp = serverTime > 0 ? serverTime : msg.getTimestamp();
break;
default:
resId = -1;
Expand Down

0 comments on commit 83bede3

Please sign in to comment.