Skip to content

Commit

Permalink
Merge pull request #133 from wangdaliu/fix-illegal-exception
Browse files Browse the repository at this point in the history
Fix illegalStateException
  • Loading branch information
brendamvillareal authored May 28, 2024
2 parents e688669 + efa4d28 commit febb2ea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ protected void removeFragment(@NonNull String tag) {
}
Fragment fragment = fragmentManager.findFragmentByTag(tag);
if (fragment != null) {
fragmentManager.beginTransaction().remove(fragment).commit();
fragmentManager.beginTransaction().remove(fragment).commitAllowingStateLoss();
}
}

Expand Down

0 comments on commit febb2ea

Please sign in to comment.