don't reinit conversation when coming back to activity. avoids unnecessary scrolling

This commit is contained in:
Daniel Gultsch 2015-05-12 03:56:13 +02:00
parent ceadf2f6fb
commit fe5c4cab46
1 changed files with 1 additions and 3 deletions

View File

@ -927,9 +927,7 @@ public class ConversationActivity extends XmppActivity
} }
this.mConversationFragment.reInit(getSelectedConversation()); this.mConversationFragment.reInit(getSelectedConversation());
mOpenConverstaion = null; mOpenConverstaion = null;
} else if (getSelectedConversation() != null) { } else if (getSelectedConversation() == null) {
this.mConversationFragment.reInit(getSelectedConversation());
} else {
showConversationsOverview(); showConversationsOverview();
mPendingImageUris.clear(); mPendingImageUris.clear();
mPendingFileUris.clear(); mPendingFileUris.clear();