added logging in case fragment wasn't attached
This commit is contained in:
parent
290f53f4a6
commit
1153e6120d
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue