mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-17 22:35:08 -05:00
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() {
|
||||
ConversationFragment selectedFragment = new ConversationFragment();
|
||||
if (!isFinishing()) {
|
||||
|
||||
FragmentTransaction transaction = getFragmentManager()
|
||||
.beginTransaction();
|
||||
transaction.replace(R.id.selected_conversation, selectedFragment,
|
||||
"conversation");
|
||||
|
||||
transaction.commitAllowingStateLoss();
|
||||
}
|
||||
return selectedFragment;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user