fix crash when going back while activity is launching

This commit is contained in:
Felix 2017-04-15 19:58:35 +02:00
parent 2e84401d81
commit 8b77b6663e

View file

@ -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();
}
}