Fix overlapped menues
This commit is contained in:
parent
9b3c6da08b
commit
ab95b5b71b
2 changed files with 6 additions and 3 deletions
|
@ -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();
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue