Fixed issue with drawer menu opened with slide change status
This commit is contained in:
parent
984717dd11
commit
6a7fb4670b
1 changed files with 3 additions and 1 deletions
|
@ -94,6 +94,7 @@ public class MapActivityActions implements DialogProvider {
|
||||||
|
|
||||||
private enum DrawerType{
|
private enum DrawerType{
|
||||||
WAYPOINTS,
|
WAYPOINTS,
|
||||||
|
CONFIGURE_SCREEN,
|
||||||
CONFIGURE_MAP,
|
CONFIGURE_MAP,
|
||||||
MAIN_MENU
|
MAIN_MENU
|
||||||
}
|
}
|
||||||
|
@ -816,6 +817,7 @@ public class MapActivityActions implements DialogProvider {
|
||||||
.listen(new OnContextMenuClick() {
|
.listen(new OnContextMenuClick() {
|
||||||
@Override
|
@Override
|
||||||
public boolean onContextMenuClick(ArrayAdapter<?> adapter, int itemId, int pos, boolean isChecked) {
|
public boolean onContextMenuClick(ArrayAdapter<?> adapter, int itemId, int pos, boolean isChecked) {
|
||||||
|
currentDrawer = DrawerType.CONFIGURE_MAP;
|
||||||
prepareConfigureMap();
|
prepareConfigureMap();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -825,7 +827,7 @@ public class MapActivityActions implements DialogProvider {
|
||||||
.listen(new OnContextMenuClick() {
|
.listen(new OnContextMenuClick() {
|
||||||
@Override
|
@Override
|
||||||
public boolean onContextMenuClick(ArrayAdapter<?> adapter, int itemId, int pos, boolean isChecked) {
|
public boolean onContextMenuClick(ArrayAdapter<?> adapter, int itemId, int pos, boolean isChecked) {
|
||||||
currentDrawer = DrawerType.CONFIGURE_MAP;
|
currentDrawer = DrawerType.CONFIGURE_SCREEN;
|
||||||
ContextMenuAdapter cm = mapActivity.getMapLayers().getMapInfoLayer().getViewConfigureMenuAdapter();
|
ContextMenuAdapter cm = mapActivity.getMapLayers().getMapInfoLayer().getViewConfigureMenuAdapter();
|
||||||
prepareOptionsMenu(cm);
|
prepareOptionsMenu(cm);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue