diff options
| author | Rainer <rschum@web.de> | 2011-07-19 18:24:28 +0200 |
|---|---|---|
| committer | Rainer <rschum@web.de> | 2011-07-19 18:24:28 +0200 |
| commit | 0563bb4326dc555936da768dd8181249cc701d40 (patch) | |
| tree | 1f930f6dee8900b5eb4d23eb09f04a0e8ff2c693 | |
| parent | 83f1b7971e8f2ab10d5b56a3d7e150966ae4dd8d (diff) | |
| download | cgeo-0563bb4326dc555936da768dd8181249cc701d40.zip cgeo-0563bb4326dc555936da768dd8181249cc701d40.tar.gz cgeo-0563bb4326dc555936da768dd8181249cc701d40.tar.bz2 | |
Mapped isValidMapfile to mapsforge implementation
| -rw-r--r-- | src/cgeo/geocaching/mapsforge/mfMapView.java | 5 |
1 files changed, 1 insertions, 4 deletions
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); } |
