Render theme styles: allow setting menu callback #93

This commit is contained in:
Emux
2017-06-01 14:53:11 +03:00
parent 45383397bc
commit f77c46f56d
5 changed files with 35 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
/*
* Copyright 2010, 2011, 2012 mapsforge.org
* Copyright 2016 devemux86
* Copyright 2016-2017 devemux86
*
* This program is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free Software
@@ -34,7 +34,7 @@ public class AssetsRenderTheme implements ThemeFile {
private static final long serialVersionUID = 1L;
private final InputStream mInputStream;
private final XmlRenderThemeMenuCallback mMenuCallback;
private XmlRenderThemeMenuCallback mMenuCallback;
private final String mRelativePathPrefix;
/**
@@ -96,4 +96,9 @@ public class AssetsRenderTheme implements ThemeFile {
public InputStream getRenderThemeAsStream() throws ThemeException {
return mInputStream;
}
@Override
public void setMenuCallback(XmlRenderThemeMenuCallback menuCallback) {
mMenuCallback = menuCallback;
}
}