Change commit to commitAllowingStateLoss on fragment change
This commit is contained in:
parent
d305a6bd49
commit
aa7f3abae9
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue