Fix overlapped menues

This commit is contained in:
Alexey Kulish 2017-04-04 17:35:39 +03:00
parent 9b3c6da08b
commit ab95b5b71b
2 changed files with 6 additions and 3 deletions

View file

@ -75,6 +75,10 @@ public class MapMultiSelectionMenuFragment extends Fragment implements AdapterVi
@Override
public void onResume() {
super.onResume();
if (MapRouteInfoMenu.isVisible()) {
dismissMenu();
return;
}
wasDrawerDisabled = menu.getMapActivity().isDrawerDisabled();
if (!wasDrawerDisabled) {
menu.getMapActivity().disableDrawer();
@ -104,6 +108,7 @@ public class MapMultiSelectionMenuFragment extends Fragment implements AdapterVi
if (mapActivity.isActivityDestroyed()) {
return;
}
mapActivity.getContextMenu().hideMenues();
MapMultiSelectionMenu menu = mapActivity.getContextMenu().getMultiSelectionMenu();

View file

@ -173,9 +173,7 @@ public class MapRouteInfoMenuFragment extends Fragment {
slideOutAnim = R.anim.slide_out_left;
}
if (mapActivity.getContextMenu().isVisible()) {
mapActivity.getContextMenu().hide();
}
mapActivity.getContextMenu().hideMenues();
MapRouteInfoMenuFragment fragment = new MapRouteInfoMenuFragment();
mapActivity.getSupportFragmentManager().beginTransaction()