Permalink
Browse files

Fix creating from temp directory

Bug fix runDownloading should not be called if packaging from the temp directory
(serverURL==null && tempFolder).exists())
  • Loading branch information...
kampkb committed Apr 16, 2018
1 parent 091d00d commit fae7963226412f6bbbea18f53fe6592dbd3db315
Showing with 5 additions and 1 deletion.
  1. +5 −1 OSMMapTilePackager/src/main/java/org/osmdroid/mtp/OSMMapTilePackager.java
@@ -186,7 +186,11 @@ public static void execute(final String pServerURL, final String pDestinationFil
final int pMinZoom, final int pMaxZoom, final double pNorth, final double pSouth,
final double pEast, final double pWest, final ProgressNotification callbackNotification) {
System.out.println("---------------------------");
runDownloading(pServerURL, pTempFolder, pThreadCount, pFileAppendix, pMinZoom, pMaxZoom, pNorth, pSouth, pEast, pWest, callbackNotification);
if (pServerURL!=null) {
runDownloading(pServerURL, pTempFolder, pThreadCount, pFileAppendix, pMinZoom, pMaxZoom, pNorth, pSouth, pEast, pWest, callbackNotification);
} else {
System.out.println("using temporary directory content");
}
System.out.println("---------------------------");
if (callbackNotification != null) {
callbackNotification.updateProgress("Download complete, creating archive");

0 comments on commit fae7963

Please sign in to comment.