aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-10-02 23:50:24 +0200
committerChristian Schneppe <christian@pix-art.de>2018-10-02 23:50:24 +0200
commitfdf2260799994507097767503e634a0108b2c6fb (patch)
treee7587df61e5af97a6b13a50fc8d3389a97b41be5 /src/main/java/de/pixart
parent0be2d9774ba6c09d5161ee526ab2ecf68f2b606f (diff)
hide icons for muc/contact details in phone mode and only show them in tablet mode
Diffstat (limited to 'src/main/java/de/pixart')
-rw-r--r--src/main/java/de/pixart/messenger/ui/ConversationFragment.java14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java
index a0f4bf894..e7c7ae1a8 100644
--- a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java
+++ b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java
@@ -1139,13 +1139,21 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke
if (conversation.getMode() == Conversation.MODE_MULTI) {
menuInviteContact.setVisible(true);
menuArchiveChat.setTitle(R.string.action_end_conversation_muc);
- menuGroupDetails.setVisible(true);
- menuContactDetails.setVisible(false);
} else {
menuInviteContact.setVisible(false);
menuArchiveChat.setTitle(R.string.action_end_conversation);
+ }
+ if (getFragmentManager().findFragmentById(R.id.secondary_fragment) != null) {
+ if (conversation.getMode() == Conversation.MODE_MULTI) {
+ menuGroupDetails.setVisible(true);
+ menuContactDetails.setVisible(false);
+ } else {
+ menuGroupDetails.setVisible(false);
+ menuContactDetails.setVisible(true);
+ }
+ } else {
menuGroupDetails.setVisible(false);
- menuContactDetails.setVisible(true);
+ menuContactDetails.setVisible(false);
}
menuNeedHelp.setVisible(true);
menuSearchUpdates.setVisible(false);