mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2025-07-10 21:50:28 +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);
|
ft.setCustomAnimations(R.anim.enter, R.anim.exit, R.anim.pop_enter, R.anim.pop_exit);
|
||||||
Fragment _fragment = fragmentManager.findFragmentByTag(tag);
|
Fragment _fragment = fragmentManager.findFragmentByTag(tag);
|
||||||
if (_fragment != null && _fragment.isAdded()) {
|
if (_fragment != null && _fragment.isAdded()) {
|
||||||
ft.show(_fragment).commit();
|
ft.show(_fragment).commitAllowingStateLoss();
|
||||||
fragment = _fragment;
|
fragment = _fragment;
|
||||||
} else {
|
} else {
|
||||||
if (args != null) fragment.setArguments(args);
|
if (args != null) fragment.setArguments(args);
|
||||||
|
@ -928,7 +928,7 @@ public class Helper {
|
||||||
}catch (Exception ignored){}
|
}catch (Exception ignored){}
|
||||||
}
|
}
|
||||||
if (!fragmentManager.isDestroyed()) {
|
if (!fragmentManager.isDestroyed()) {
|
||||||
ft.commit();
|
ft.commitAllowingStateLoss();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fragmentManager.executePendingTransactions();
|
fragmentManager.executePendingTransactions();
|
||||||
|
|
Loading…
Reference in a new issue