C-style string comparisons, fixes #190

This commit is contained in:
Emux
2016-09-29 09:30:42 +03:00
parent 41c35ea114
commit 1e745a6e9b
11 changed files with 97 additions and 40 deletions

View File

@@ -1,5 +1,6 @@
/*
* Copyright 2013 Hannes Janetzek
* Copyright 2016 devemux86
*
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
*
@@ -147,7 +148,7 @@ public class OSciMap2TileSource extends UrlTileSource {
String key = Tags.keys[mSArray[curTag]];
Tag tag;
if (key == Tag.KEY_NAME)
if (Tag.KEY_NAME.equals(key))
tag = new Tag(key, tagString, false);
else
tag = new Tag(key, tagString, true);