Enable map moving with follow track screen
This commit is contained in:
parent
69e5293412
commit
3004c8bc35
3 changed files with 17 additions and 9 deletions
|
@ -148,13 +148,6 @@ public class FollowTrackFragment extends ContextMenuScrollFragment implements Ca
|
|||
}
|
||||
});
|
||||
|
||||
view.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
openMenuHeaderOnly();
|
||||
}
|
||||
});
|
||||
|
||||
if (isPortrait()) {
|
||||
updateCardsLayout();
|
||||
}
|
||||
|
@ -272,6 +265,18 @@ public class FollowTrackFragment extends ContextMenuScrollFragment implements Ca
|
|||
return divider;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
MapRouteInfoMenu.followTrackVisible = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPause() {
|
||||
super.onPause();
|
||||
MapRouteInfoMenu.followTrackVisible = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void calculateLayout(View view, boolean initLayout) {
|
||||
menuTitleHeight = view.findViewById(R.id.route_menu_top_shadow_all).getHeight()
|
||||
|
|
|
@ -134,6 +134,7 @@ public class MapRouteInfoMenu implements IRouteInformationListener, CardListener
|
|||
public static int directionInfo = -1;
|
||||
public static boolean chooseRoutesVisible = false;
|
||||
public static boolean waypointsVisible = false;
|
||||
public static boolean followTrackVisible = false;
|
||||
|
||||
private Stack<MapRouteMenuStateHolder> menuBackStack = new Stack<>();
|
||||
|
||||
|
|
|
@ -843,7 +843,8 @@ public class ContextMenuLayer extends OsmandMapLayer {
|
|||
}
|
||||
|
||||
public boolean disableSingleTap() {
|
||||
if (activity.getMapRouteInfoMenu().isVisible() || MapRouteInfoMenu.waypointsVisible) {
|
||||
if (activity.getMapRouteInfoMenu().isVisible() || MapRouteInfoMenu.waypointsVisible
|
||||
|| MapRouteInfoMenu.followTrackVisible) {
|
||||
return true;
|
||||
}
|
||||
boolean res = false;
|
||||
|
@ -860,7 +861,8 @@ public class ContextMenuLayer extends OsmandMapLayer {
|
|||
|
||||
public boolean disableLongPressOnMap() {
|
||||
if (mInChangeMarkerPositionMode || mInGpxDetailsMode || mInAddGpxPointMode ||
|
||||
activity.getMapRouteInfoMenu().isVisible() || MapRouteInfoMenu.waypointsVisible) {
|
||||
activity.getMapRouteInfoMenu().isVisible() || MapRouteInfoMenu.waypointsVisible
|
||||
|| MapRouteInfoMenu.followTrackVisible) {
|
||||
return true;
|
||||
}
|
||||
boolean res = false;
|
||||
|
|
Loading…
Reference in a new issue