Fix crash
This commit is contained in:
parent
64870b1638
commit
bb0594e3eb
2 changed files with 6 additions and 2 deletions
|
@ -752,7 +752,11 @@ public class MapActivity extends OsmandActionBarActivity implements DownloadEven
|
|||
}
|
||||
|
||||
public void dismissCardDialog() {
|
||||
getSupportFragmentManager().popBackStack(ContextMenuCardDialogFragment.TAG, FragmentManager.POP_BACK_STACK_INCLUSIVE);
|
||||
try {
|
||||
getSupportFragmentManager().popBackStack(ContextMenuCardDialogFragment.TAG, FragmentManager.POP_BACK_STACK_INCLUSIVE);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -109,7 +109,7 @@ public class ContextMenuCardDialogFragment extends Fragment {
|
|||
fragment.dialog = menu;
|
||||
menu.getMapActivity().getSupportFragmentManager().beginTransaction()
|
||||
.replace(R.id.topFragmentContainer, fragment, TAG)
|
||||
.addToBackStack(TAG).commit();
|
||||
.addToBackStack(TAG).commitAllowingStateLoss();
|
||||
}
|
||||
|
||||
public void dismiss() {
|
||||
|
|
Loading…
Reference in a new issue