diff options
author | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-01-28 23:15:30 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-01-28 23:15:30 +0100 |
commit | 76cfab03ec712173ba37a98306c448f5930f0474 (patch) | |
tree | a098c1a1e7b70bac1cb6d209b3c7d4eb73faec60 /src/de/gultsch/chat/ui/ConversationActivity.java | |
parent | efba73ffd012cede18b6d50fe32b3077bb866741 (diff) |
ui flow for first startup with no existing account
Diffstat (limited to 'src/de/gultsch/chat/ui/ConversationActivity.java')
-rw-r--r-- | src/de/gultsch/chat/ui/ConversationActivity.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/de/gultsch/chat/ui/ConversationActivity.java b/src/de/gultsch/chat/ui/ConversationActivity.java index 90fc1d40..d831f9b8 100644 --- a/src/de/gultsch/chat/ui/ConversationActivity.java +++ b/src/de/gultsch/chat/ui/ConversationActivity.java @@ -280,7 +280,10 @@ public class ConversationActivity extends XmppActivity { swapConversationFragment(); } } else { - if (conversationList.size() <= 0) { + if (xmppConnectionService.getAccounts().size() == 0) { + startActivity(new Intent(this, ManageAccountActivity.class)); + finish(); + } else if (conversationList.size() <= 0) { //add no history startActivity(new Intent(this, NewConversationActivity.class)); finish(); |