Fix download button on map z9-12
This commit is contained in:
parent
f4a5448e6b
commit
b39b11991a
3 changed files with 7 additions and 2 deletions
|
@ -75,7 +75,11 @@ public abstract class OsmandPlugin {
|
|||
installPlugin(SRTM_PLUGIN_COMPONENT, SRTMPlugin.FREE_ID, app,
|
||||
new SRTMPlugin(app, false));
|
||||
}
|
||||
installPlugin(PARKING_PLUGIN_COMPONENT, ParkingPositionPlugin.ID, app, new ParkingPositionPlugin(app));
|
||||
final ParkingPositionPlugin parking = new ParkingPositionPlugin(app);
|
||||
boolean f = installPlugin(PARKING_PLUGIN_COMPONENT, ParkingPositionPlugin.ID, app, parking);
|
||||
if(!f && Version.isParkingPluginInlined(app)) {
|
||||
installedPlugins.add(parking);
|
||||
}
|
||||
installPlugin(OSMODROID_PLUGIN_COMPONENT, OsMoDroidPlugin.ID, app, new OsMoDroidPlugin(app));
|
||||
installedPlugins.add(new OsmEditingPlugin(app));
|
||||
installedPlugins.add(new OsmandDevelopmentPlugin(app));
|
||||
|
|
|
@ -197,6 +197,7 @@ public class OsMoGroups implements OsMoReactor, OsmoTrackerListener {
|
|||
// connect to enabled devices in group
|
||||
for(OsMoDevice d : group.getGroupUsers(null)) {
|
||||
if(d.isEnabled()) {
|
||||
d.active = false;
|
||||
connectDeviceImpl(d);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -164,7 +164,7 @@ public class DownloadedRegionsLayer extends OsmandMapLayer {
|
|||
int right = MapUtils.get31TileNumberX(tileBox.getRightBottomLatLon().getLongitude());
|
||||
int top = MapUtils.get31TileNumberY(tileBox.getLeftTopLatLon().getLatitude());
|
||||
int bottom = MapUtils.get31TileNumberY(tileBox.getRightBottomLatLon().getLatitude());
|
||||
final boolean empty = rm.getRenderer().isLastMapRenderedEmpty(false);
|
||||
final boolean empty = rm.getRenderer().isLastMapRenderedEmpty(tileBox.getZoom() < 12);
|
||||
noMapsPresent = empty;
|
||||
if (!empty && tileBox.getZoom() >= ZOOM_TO_SHOW_MAP_NAMES) {
|
||||
return Collections.emptyList();
|
||||
|
|
Loading…
Reference in a new issue