aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-08-30 13:13:06 +0200
committerDaniel Gultsch <daniel@gultsch.de>2016-08-30 13:13:06 +0200
commitd32cbcc70d4336c89997c5f473656a05e19fc940 (patch)
treec92f463c8bb285f393323d2080e39fbf99bddc38 /src/main/java
parentaf329eff461acb023684d111a1ed21964346df4b (diff)
don't show up navigation in startConversation when there are no open conversations
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java b/src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java
index 66a7586a..ee380ea4 100644
--- a/src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java
+++ b/src/main/java/eu/siacs/conversations/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);