fixed #4 - this happend when you would archive (leave) the last conversation
This commit is contained in:
parent
aa31732ea3
commit
5a4328db7d
|
@ -159,6 +159,8 @@ public class ConversationActivity extends XmppActivity {
|
||||||
} else {
|
} else {
|
||||||
view.setBackgroundColor(Color.TRANSPARENT);
|
view.setBackgroundColor(Color.TRANSPARENT);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
view.setBackgroundColor(Color.TRANSPARENT);
|
||||||
}
|
}
|
||||||
TextView convName = (TextView) view.findViewById(R.id.conversation_name);
|
TextView convName = (TextView) view.findViewById(R.id.conversation_name);
|
||||||
convName.setText(conv.getName());
|
convName.setText(conv.getName());
|
||||||
|
@ -294,7 +296,11 @@ public class ConversationActivity extends XmppActivity {
|
||||||
paneShouldBeOpen = true;
|
paneShouldBeOpen = true;
|
||||||
spl.openPane();
|
spl.openPane();
|
||||||
xmppConnectionService.archiveConversation(conv);
|
xmppConnectionService.archiveConversation(conv);
|
||||||
selectedConversation = conversationList.get(0);
|
if (conversationList.size() > 0) {
|
||||||
|
selectedConversation = conversationList.get(0);
|
||||||
|
} else {
|
||||||
|
selectedConversation = null;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case R.id.action_contact_details:
|
case R.id.action_contact_details:
|
||||||
Contact contact = this.getSelectedConversation().getContact();
|
Contact contact = this.getSelectedConversation().getContact();
|
||||||
|
|
Loading…
Reference in a new issue