diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2014-03-07 18:13:19 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2014-03-07 18:22:15 +0100 |
commit | e4963ce86eb1213b66a9cbcf91b99c339a85249c (patch) | |
tree | 662de74053321c324d133999ea07c45000c2e423 /src/eu/siacs/conversations/ui/ConversationFragment.java | |
parent | b7d8c34386c9e9c8bc533c000d520c60f23252ac (diff) |
ui fixes for tablets
Diffstat (limited to '')
-rw-r--r-- | src/eu/siacs/conversations/ui/ConversationFragment.java | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/eu/siacs/conversations/ui/ConversationFragment.java b/src/eu/siacs/conversations/ui/ConversationFragment.java index 6c88fcb3..3b8b6888 100644 --- a/src/eu/siacs/conversations/ui/ConversationFragment.java +++ b/src/eu/siacs/conversations/ui/ConversationFragment.java @@ -337,16 +337,19 @@ public class ConversationFragment extends Fragment { this.selfBitmap = findSelfPicture(); updateMessages(); // rendering complete. now go tell activity to close pane - if (!activity.shouldPaneBeOpen()) { - activity.getSlidingPaneLayout().closePane(); - activity.getActionBar().setDisplayHomeAsUpEnabled(true); - activity.getActionBar().setTitle(conversation.getName()); - activity.invalidateOptionsMenu(); - if (!conversation.isRead()) { - conversation.markRead(); - activity.updateConversationList(); + if (activity.getSlidingPaneLayout().isSlideable()) { + if (!activity.shouldPaneBeOpen()) { + activity.getSlidingPaneLayout().closePane(); + activity.getActionBar().setDisplayHomeAsUpEnabled(true); + activity.getActionBar().setTitle(conversation.getName()); + activity.invalidateOptionsMenu(); + } } + if (!conversation.isRead()) { + conversation.markRead(); + activity.updateConversationList(); + } if (queuedPqpMessage != null) { this.conversation.nextMessageEncryption = Message.ENCRYPTION_PGP; Message message = new Message(conversation, queuedPqpMessage, |