diff --git a/OsmAnd-java/src/net/osmand/NativeLibrary.java b/OsmAnd-java/src/net/osmand/NativeLibrary.java index b44063d402..81ce6cab00 100644 --- a/OsmAnd-java/src/net/osmand/NativeLibrary.java +++ b/OsmAnd-java/src/net/osmand/NativeLibrary.java @@ -333,7 +333,7 @@ public class NativeLibrary { }); for(File f : lst) { final String name = f.getName(); - if(!name.endsWith(".ttf") || !name.endsWith(".otf")) { + if(!name.endsWith(".ttf") && !name.endsWith(".otf")) { continue; } try {