mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2025-07-10 05:30:29 +03:00
Fix a crash when opening conversations
This commit is contained in:
parent
4baadfba17
commit
5cf8332024
1 changed files with 2 additions and 2 deletions
|
@ -916,7 +916,7 @@ public class Helper {
|
|||
ft.setCustomAnimations(R.anim.enter, R.anim.exit, R.anim.pop_enter, R.anim.pop_exit);
|
||||
Fragment _fragment = fragmentManager.findFragmentByTag(tag);
|
||||
if (_fragment != null && _fragment.isAdded()) {
|
||||
ft.show(_fragment).commit();
|
||||
ft.show(_fragment).commitAllowingStateLoss();
|
||||
fragment = _fragment;
|
||||
} else {
|
||||
if (args != null) fragment.setArguments(args);
|
||||
|
@ -928,7 +928,7 @@ public class Helper {
|
|||
}catch (Exception ignored){}
|
||||
}
|
||||
if (!fragmentManager.isDestroyed()) {
|
||||
ft.commit();
|
||||
ft.commitAllowingStateLoss();
|
||||
}
|
||||
}
|
||||
fragmentManager.executePendingTransactions();
|
||||
|
|
Loading…
Reference in a new issue