From f6065fa95062e631dedc0f079040102378b6300a Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Thu, 23 Jun 2011 22:44:11 +0200 Subject: [PATCH] Fix bugs --- OsmAnd/src/net/osmand/plus/ResourceManager.java | 2 -- OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/ResourceManager.java b/OsmAnd/src/net/osmand/plus/ResourceManager.java index cf10906455..653a21a2bb 100644 --- a/OsmAnd/src/net/osmand/plus/ResourceManager.java +++ b/OsmAnd/src/net/osmand/plus/ResourceManager.java @@ -2,7 +2,6 @@ package net.osmand.plus; import java.io.File; -import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; @@ -39,7 +38,6 @@ import net.osmand.plus.views.POIMapLayer; import org.apache.commons.logging.Log; -import android.content.res.AssetFileDescriptor; import android.content.res.AssetManager; import android.database.sqlite.SQLiteException; import android.graphics.Bitmap; diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java b/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java index ae41f229a5..bc49a2c8ce 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java @@ -130,6 +130,7 @@ public class MapActivityActions { BaseMapLayer mainLayer = mapView.getMainLayer(); if(!(mainLayer instanceof MapTileLayer) || ((MapTileLayer) mainLayer).isVisible()){ Toast.makeText(mapActivity, R.string.maps_could_not_be_downloaded, Toast.LENGTH_SHORT).show(); + return; } final ITileSource mapSource = ((MapTileLayer) mainLayer).getMap(); if(mapSource == null || !mapSource.couldBeDownloadedFromInternet()){