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() {
|
public void dismissCardDialog() {
|
||||||
|
try {
|
||||||
getSupportFragmentManager().popBackStack(ContextMenuCardDialogFragment.TAG, FragmentManager.POP_BACK_STACK_INCLUSIVE);
|
getSupportFragmentManager().popBackStack(ContextMenuCardDialogFragment.TAG, FragmentManager.POP_BACK_STACK_INCLUSIVE);
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -109,7 +109,7 @@ public class ContextMenuCardDialogFragment extends Fragment {
|
||||||
fragment.dialog = menu;
|
fragment.dialog = menu;
|
||||||
menu.getMapActivity().getSupportFragmentManager().beginTransaction()
|
menu.getMapActivity().getSupportFragmentManager().beginTransaction()
|
||||||
.replace(R.id.topFragmentContainer, fragment, TAG)
|
.replace(R.id.topFragmentContainer, fragment, TAG)
|
||||||
.addToBackStack(TAG).commit();
|
.addToBackStack(TAG).commitAllowingStateLoss();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void dismiss() {
|
public void dismiss() {
|
||||||
|
|
Loading…
Reference in a new issue