mirror of
https://github.com/NiciDieNase/chaosflix
synced 2024-11-23 12:53:08 +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() {
|
public void dismiss() {
|
||||||
getFragmentManager().beginTransaction().remove(BrowseErrorFragment.this).commit();
|
FragmentManager fragmentManager = getFragmentManager();
|
||||||
getFragmentManager().popBackStack();
|
if(fragmentManager != null){
|
||||||
|
fragmentManager.beginTransaction().remove(BrowseErrorFragment.this).commit();
|
||||||
|
fragmentManager.popBackStack();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue