From 0563bb4326dc555936da768dd8181249cc701d40 Mon Sep 17 00:00:00 2001 From: Rainer Date: Tue, 19 Jul 2011 18:24:28 +0200 Subject: Mapped isValidMapfile to mapsforge implementation --- src/cgeo/geocaching/mapsforge/mfMapView.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/cgeo/geocaching/mapsforge/mfMapView.java') diff --git a/src/cgeo/geocaching/mapsforge/mfMapView.java b/src/cgeo/geocaching/mapsforge/mfMapView.java index e463a26..e2908a5 100644 --- a/src/cgeo/geocaching/mapsforge/mfMapView.java +++ b/src/cgeo/geocaching/mapsforge/mfMapView.java @@ -146,10 +146,7 @@ public class mfMapView extends MapView implements MapViewImpl { * @return true if the file is a valid map file, false otherwise. */ public static boolean isValidMapFile(String file) { - MapDatabase testDatabase = new MapDatabase(); - boolean isValid = testDatabase.openFile(file); - testDatabase.closeFile(); - return isValid; + return MapDatabase.isValidMapFile(file); } -- cgit v1.1