Fix coordinates widget visibility
This commit is contained in:
parent
698c1bb6b0
commit
377d15b177
1 changed files with 4 additions and 2 deletions
|
@ -1066,7 +1066,10 @@ public class MapInfoWidgetsFactory {
|
||||||
|
|
||||||
@SuppressLint("SetTextI18n")
|
@SuppressLint("SetTextI18n")
|
||||||
public boolean updateInfo() {
|
public boolean updateInfo() {
|
||||||
boolean visible = settings.SHOW_COORDINATES_WIDGET.get();
|
boolean visible = settings.SHOW_COORDINATES_WIDGET.get() && map.getContextMenu().shouldShowTopControls()
|
||||||
|
&& !map.getMapRouteInfoMenu().isVisible() && !map.isTopToolbarActive()
|
||||||
|
&& !MapRouteInfoMenu.chooseRoutesVisible && !MapRouteInfoMenu.waypointsVisible;
|
||||||
|
|
||||||
updateVisibility(visible);
|
updateVisibility(visible);
|
||||||
if (visible) {
|
if (visible) {
|
||||||
lastKnownLocation = locationProvider.getLastKnownLocation();
|
lastKnownLocation = locationProvider.getLastKnownLocation();
|
||||||
|
@ -1120,7 +1123,6 @@ public class MapInfoWidgetsFactory {
|
||||||
GPSInfo gpsInfo = locationProvider.getGPSInfo();
|
GPSInfo gpsInfo = locationProvider.getGPSInfo();
|
||||||
latitudeText.setText(map.getString(R.string.searching_gps) + "…" + gpsInfo.usedSatellites + "/" + gpsInfo.foundSatellites);
|
latitudeText.setText(map.getString(R.string.searching_gps) + "…" + gpsInfo.usedSatellites + "/" + gpsInfo.foundSatellites);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue