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
1 changed files with 5 additions and 0 deletions

View File

@ -1570,9 +1570,14 @@ public class ConversationActivity extends XmppActivity
protected void refreshUiReal() {
updateConversationList();
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();
updateActionBarTitle();
invalidateOptionsMenu();
} else {
Log.d(Config.LOGTAG,"not updating conversations fragment because conversations list size was 0");
}
}