fix stale location and compass_layout in landscape
This commit is contained in:
parent
a9ce39ed44
commit
ecc5b92987
2 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue