fix stale location and compass_layout in landscape

This commit is contained in:
Chumva 2018-06-14 13:56:12 +03:00
parent a9ce39ed44
commit ecc5b92987
2 changed files with 2 additions and 1 deletions

View file

@ -135,6 +135,7 @@ public class UiUtilities {
fromLoc = new LatLon(loc.getLatitude(), loc.getLongitude());
} else {
useCenter = true;
stale = false;
fromLoc = app.getMapViewTrackingUtilities().getMapLocation();
h = app.getMapViewTrackingUtilities().getMapRotate();
if(h != null) {

View file

@ -1497,7 +1497,7 @@ public class MapContextMenuFragment extends BaseOsmAndFragment implements Downlo
OsmandApplication app = getMyApplication();
if (app != null && view != null) {
View compassView = view.findViewById(R.id.compass_layout);
if (menu.displayDistanceDirection() && menu.getCurrentMenuState() != MenuState.FULL_SCREEN) {
if (menu.displayDistanceDirection()) {
updateDistanceDirection();
compassView.setVisibility(View.VISIBLE);
} else {