From aa7f3abae911d737f5b0fb7d0d8a6991970ac9e8 Mon Sep 17 00:00:00 2001 From: Erwan Croze Date: Mon, 14 Nov 2016 14:42:13 +0100 Subject: [PATCH] Change commit to commitAllowingStateLoss on fragment change --- src/org/linphone/LinphoneActivity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/org/linphone/LinphoneActivity.java b/src/org/linphone/LinphoneActivity.java index a6985bf37..bac44ec2b 100644 --- a/src/org/linphone/LinphoneActivity.java +++ b/src/org/linphone/LinphoneActivity.java @@ -455,7 +455,7 @@ public class LinphoneActivity extends Activity implements OnClickListener, Conta } transaction.replace(R.id.fragmentContainer, newFragment, newFragmentType.toString()); - transaction.commit(); + transaction.commitAllowingStateLoss(); fm.executePendingTransactions(); currentFragment = newFragmentType; @@ -478,7 +478,7 @@ public class LinphoneActivity extends Activity implements OnClickListener, Conta ll.setVisibility(View.VISIBLE); emptyFragment = true; transaction.replace(R.id.fragmentContainer2, newFragment); - transaction.commit(); + transaction.commitAllowingStateLoss(); getFragmentManager().executePendingTransactions(); } else { if (newFragmentType.shouldAddItselfToTheRightOf(currentFragment)) { @@ -514,7 +514,7 @@ public class LinphoneActivity extends Activity implements OnClickListener, Conta }*/ transaction.replace(R.id.fragmentContainer, newFragment); } - transaction.commit(); + transaction.commitAllowingStateLoss(); getFragmentManager().executePendingTransactions(); currentFragment = newFragmentType;