add cache for S3DB layer

This commit is contained in:
Hannes Janetzek
2014-03-08 14:58:31 +01:00
parent feeebae5fb
commit e52bed199a
2 changed files with 21 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ import android.view.MenuItem;
public class BaseMapActivity extends MapActivity {
private final static boolean USE_CACHE = true;
final static boolean USE_CACHE = true;
MapView mMapView;
VectorTileLayer mBaseLayer;
@@ -70,7 +70,7 @@ public class BaseMapActivity extends MapActivity {
protected void onDestroy() {
super.onDestroy();
if (USE_CACHE)
if (mCache != null)
mCache.dispose();
}