commit allowing state loss

This commit is contained in:
Daniel Gultsch 2018-03-19 12:29:21 +01:00
parent 5363470bcf
commit 11136f939e

View file

@ -424,7 +424,7 @@ public class ConversationsActivity extends XmppActivity implements OnConversatio
FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction(); FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();
fragmentTransaction.replace(R.id.main_fragment, conversationFragment); fragmentTransaction.replace(R.id.main_fragment, conversationFragment);
fragmentTransaction.addToBackStack(null); fragmentTransaction.addToBackStack(null);
fragmentTransaction.commit(); fragmentTransaction.commitAllowingStateLoss(); //allowing state loss is probably fine since view intents et all are already stored and a click can probably be 'ignored'
} }
} else { } else {
mainNeedsRefresh = true; mainNeedsRefresh = true;