diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-08-30 13:13:06 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2016-09-02 23:05:36 +0200 |
commit | 03b85d07ddcfa71a4be284c35d2ec97076d8a80b (patch) | |
tree | 8fd1c71c5d9c7750e2f3357e46cbe0a0d0758e94 /src/main/java/de | |
parent | b2b1b0ad38cdbd42049664e399485eaf302013b5 (diff) |
don't show up navigation in startConversation when there are no open conversations
Diffstat (limited to 'src/main/java/de')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/StartConversationActivity.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/StartConversationActivity.java b/src/main/java/de/pixart/messenger/ui/StartConversationActivity.java index e70675847..d656861d3 100644 --- a/src/main/java/de/pixart/messenger/ui/StartConversationActivity.java +++ b/src/main/java/de/pixart/messenger/ui/StartConversationActivity.java @@ -793,7 +793,9 @@ public class StartConversationActivity extends XmppActivity implements OnRosterU } final Intent intent = getIntent(); final ActionBar ab = getActionBar(); - if (intent != null && intent.getBooleanExtra("init",false) && ab != null) { + boolean init = intent != null && intent.getBooleanExtra("init", false); + boolean noConversations = xmppConnectionService.getConversations().size() == 0; + if ((init || noConversations) && ab != null) { ab.setDisplayShowHomeEnabled(false); ab.setDisplayHomeAsUpEnabled(false); ab.setHomeButtonEnabled(false); |