fix crash when going back while activity is launching

This commit is contained in:
Felix 2017-04-15 19:58:35 +02:00
parent fba03f755e
commit 8382d19b1a

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