aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/ui/ConversationActivity.java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2014-03-08 13:40:20 +0100
committerDaniel Gultsch <daniel@gultsch.de>2014-03-08 13:40:20 +0100
commit5a4328db7de0adf539da2cc3a73ee0e066bf436c (patch)
tree8b9447d1339fbb13006a12e4c556f192a76dfa1b /src/eu/siacs/conversations/ui/ConversationActivity.java
parentaa31732ea3b66201780975eae3305c9e80cc2d11 (diff)
fixed #4 - this happend when you would archive (leave) the last conversation
Diffstat (limited to 'src/eu/siacs/conversations/ui/ConversationActivity.java')
-rw-r--r--src/eu/siacs/conversations/ui/ConversationActivity.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/eu/siacs/conversations/ui/ConversationActivity.java b/src/eu/siacs/conversations/ui/ConversationActivity.java
index 07ac5518..b71e1578 100644
--- a/src/eu/siacs/conversations/ui/ConversationActivity.java
+++ b/src/eu/siacs/conversations/ui/ConversationActivity.java
@@ -159,6 +159,8 @@ public class ConversationActivity extends XmppActivity {
} else {
view.setBackgroundColor(Color.TRANSPARENT);
}
+ } else {
+ view.setBackgroundColor(Color.TRANSPARENT);
}
TextView convName = (TextView) view.findViewById(R.id.conversation_name);
convName.setText(conv.getName());
@@ -294,7 +296,11 @@ public class ConversationActivity extends XmppActivity {
paneShouldBeOpen = true;
spl.openPane();
xmppConnectionService.archiveConversation(conv);
- selectedConversation = conversationList.get(0);
+ if (conversationList.size() > 0) {
+ selectedConversation = conversationList.get(0);
+ } else {
+ selectedConversation = null;
+ }
break;
case R.id.action_contact_details:
Contact contact = this.getSelectedConversation().getContact();