trying to fix activity has been destroyed error
This commit is contained in:
parent
a33bf0b4ae
commit
d486d5def9
|
@ -607,12 +607,15 @@ public class ConversationActivity extends XmppActivity {
|
||||||
|
|
||||||
protected ConversationFragment swapConversationFragment() {
|
protected ConversationFragment swapConversationFragment() {
|
||||||
ConversationFragment selectedFragment = new ConversationFragment();
|
ConversationFragment selectedFragment = new ConversationFragment();
|
||||||
|
if (!isFinishing()) {
|
||||||
|
|
||||||
FragmentTransaction transaction = getFragmentManager()
|
FragmentTransaction transaction = getFragmentManager()
|
||||||
.beginTransaction();
|
.beginTransaction();
|
||||||
transaction.replace(R.id.selected_conversation, selectedFragment,
|
transaction.replace(R.id.selected_conversation, selectedFragment,
|
||||||
"conversation");
|
"conversation");
|
||||||
|
|
||||||
transaction.commitAllowingStateLoss();
|
transaction.commitAllowingStateLoss();
|
||||||
|
}
|
||||||
return selectedFragment;
|
return selectedFragment;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue