Fixed issue 304

- the extension of images .png, .jpg etc must be determined from the files and not hardcoded to .jpg

git-svn-id: https://osmand.googlecode.com/svn/trunk@891 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
This commit is contained in:
pavol.zibrita 2011-01-15 14:55:07 +00:00
parent 12e7ed5c71
commit e94e415f43

View file

@ -479,7 +479,7 @@ public class OsmandSettings {
} catch (IOException e) {
Log.d(LogUtil.TAG, "Error reading url " + dir.getName(), e); //$NON-NLS-1$
}
return new TileSourceManager.TileSourceTemplate(dir.getName(), url);
return new TileSourceManager.TileSourceTemplate(dir, dir.getName(), url);
}
}