Update icons
This commit is contained in:
parent
abd7fa3783
commit
2aee4e6bba
3 changed files with 5 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -4,3 +4,4 @@ rendering_types.xml
|
||||||
countries.reginfo
|
countries.reginfo
|
||||||
h_*.png
|
h_*.png
|
||||||
g_*.png
|
g_*.png
|
||||||
|
mm_*.png
|
||||||
|
|
|
@ -24,9 +24,9 @@
|
||||||
<include name="voice/**"/>
|
<include name="voice/**"/>
|
||||||
</fileset>
|
</fileset>
|
||||||
</copy>
|
</copy>
|
||||||
<copy todir="res/drawable-mdpi">
|
<copy todir="res/">
|
||||||
<fileset dir="../../resources/rendering_styles/icons-mdpi/" >
|
<fileset dir="../../resources/rendering_styles/style-icons/" >
|
||||||
<include name="*"/>
|
<include name="**/*"/>
|
||||||
</fileset>
|
</fileset>
|
||||||
</copy>
|
</copy>
|
||||||
<copy todir="${use.absolute.dir}/net/osmand/router/">
|
<copy todir="${use.absolute.dir}/net/osmand/router/">
|
||||||
|
|
|
@ -82,7 +82,7 @@ public class RenderingIcons {
|
||||||
public static void initIcons() {
|
public static void initIcons() {
|
||||||
Class<? extends drawable> cl = R.drawable.class;
|
Class<? extends drawable> cl = R.drawable.class;
|
||||||
for (Field f : cl.getDeclaredFields()) {
|
for (Field f : cl.getDeclaredFields()) {
|
||||||
if (f.getName().startsWith("h_") || f.getName().startsWith("g_")) {
|
if (f.getName().startsWith("h_") || f.getName().startsWith("mm_")) {
|
||||||
try {
|
try {
|
||||||
icons.put(f.getName().substring(2), f.getInt(null));
|
icons.put(f.getName().substring(2), f.getInt(null));
|
||||||
} catch (IllegalArgumentException e) {
|
} catch (IllegalArgumentException e) {
|
||||||
|
|
Loading…
Reference in a new issue