update conversation fragment on every backend connect

This commit is contained in:
iNPUTmice 2014-11-08 20:51:27 +01:00
parent 8a2f20b6ed
commit ea657ece0d
1 changed files with 3 additions and 2 deletions

View File

@ -31,7 +31,6 @@ import android.widget.Toast;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import eu.siacs.conversations.Config;
import eu.siacs.conversations.R; import eu.siacs.conversations.R;
import eu.siacs.conversations.entities.Contact; import eu.siacs.conversations.entities.Contact;
import eu.siacs.conversations.entities.Conversation; import eu.siacs.conversations.entities.Conversation;
@ -684,7 +683,9 @@ public class ConversationActivity extends XmppActivity implements
} }
this.mConversationFragment.reInit(getSelectedConversation()); this.mConversationFragment.reInit(getSelectedConversation());
mOpenConverstaion = null; mOpenConverstaion = null;
} else if (getSelectedConversation() == null) { } else if (getSelectedConversation() != null) {
this.mConversationFragment.updateMessages();
} else {
showConversationsOverview(); showConversationsOverview();
mPendingImageUri = null; mPendingImageUri = null;
setSelectedConversation(conversationList.get(0)); setSelectedConversation(conversationList.get(0));