Render themes: read resources from files, besides assets, closes #65

This commit is contained in:
Emux
2016-07-13 19:15:34 +03:00
parent 57a152d0aa
commit 73bc26dd2d
14 changed files with 106 additions and 33 deletions

View File

@@ -1,6 +1,7 @@
/*
* Copyright 2010, 2011, 2012 mapsforge.org
* Copyright 2013 Hannes Janetzek
* Copyright 2016 devemux86
*
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
*
@@ -33,10 +34,15 @@ public enum VtmThemes implements ThemeFile {
private final String mPath;
private VtmThemes(String path) {
VtmThemes(String path) {
mPath = path;
}
@Override
public String getRelativePathPrefix() {
return "";
}
@Override
public InputStream getRenderThemeAsStream() {
return AssetAdapter.readFileAsStream(mPath);