mirror of
https://github.com/NiciDieNase/chaosflix
synced 2024-11-23 04:43:07 +00:00
fix crash when going back while activity is launching
This commit is contained in:
parent
2e84401d81
commit
8b77b6663e
1 changed files with 5 additions and 2 deletions
|
@ -68,8 +68,11 @@ public class BrowseErrorFragment extends ErrorFragment{
|
|||
}
|
||||
|
||||
public void dismiss() {
|
||||
getFragmentManager().beginTransaction().remove(BrowseErrorFragment.this).commit();
|
||||
getFragmentManager().popBackStack();
|
||||
FragmentManager fragmentManager = getFragmentManager();
|
||||
if(fragmentManager != null){
|
||||
fragmentManager.beginTransaction().remove(BrowseErrorFragment.this).commit();
|
||||
fragmentManager.popBackStack();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue