diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-08-09 11:37:05 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-08-09 11:37:05 +0200 |
commit | d486d5def9a98f439f374c81a7b5795b3508c19d (patch) | |
tree | ac4f29091bba97d6d013395469a03929aaf7dce4 /src/eu | |
parent | a33bf0b4ae4178680d6677ffe4696f2bccfac490 (diff) |
trying to fix activity has been destroyed error
Diffstat (limited to 'src/eu')
-rw-r--r-- | src/eu/siacs/conversations/ui/ConversationActivity.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/eu/siacs/conversations/ui/ConversationActivity.java b/src/eu/siacs/conversations/ui/ConversationActivity.java index d7708b52a..80369bbff 100644 --- a/src/eu/siacs/conversations/ui/ConversationActivity.java +++ b/src/eu/siacs/conversations/ui/ConversationActivity.java @@ -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(); + + transaction.commitAllowingStateLoss(); + } return selectedFragment; } |