added logging in case fragment wasn't attached

This commit is contained in:
Daniel Gultsch 2016-03-13 17:41:38 +01:00
parent 290f53f4a6
commit 1153e6120d

View File

@ -1570,9 +1570,14 @@ public class ConversationActivity extends XmppActivity
protected void refreshUiReal() { protected void refreshUiReal() {
updateConversationList(); updateConversationList();
if (conversationList.size() > 0) { if (conversationList.size() > 0) {
if (!this.mConversationFragment.isAdded()) {
Log.d(Config.LOGTAG,"fragment NOT added to activity. detached="+Boolean.toString(mConversationFragment.isDetached()));
}
ConversationActivity.this.mConversationFragment.updateMessages(); ConversationActivity.this.mConversationFragment.updateMessages();
updateActionBarTitle(); updateActionBarTitle();
invalidateOptionsMenu(); invalidateOptionsMenu();
} else {
Log.d(Config.LOGTAG,"not updating conversations fragment because conversations list size was 0");
} }
} }