Fix coordinates widget visibility

This commit is contained in:
Chumva 2019-05-16 10:32:50 +03:00
parent 698c1bb6b0
commit 377d15b177

View file

@ -1066,7 +1066,10 @@ public class MapInfoWidgetsFactory {
@SuppressLint("SetTextI18n")
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);
if (visible) {
lastKnownLocation = locationProvider.getLastKnownLocation();
@ -1120,7 +1123,6 @@ public class MapInfoWidgetsFactory {
GPSInfo gpsInfo = locationProvider.getGPSInfo();
latitudeText.setText(map.getString(R.string.searching_gps) + "" + gpsInfo.usedSatellites + "/" + gpsInfo.foundSatellites);
}
}
return false;
}