mirror of
https://github.com/NiciDieNase/chaosflix
synced 2024-11-26 22:20:24 +00:00
fix crash when going back while activity is launching
This commit is contained in:
parent
fba03f755e
commit
8382d19b1a
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