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

@@ -21,6 +21,7 @@ import android.text.TextUtils;
import org.oscim.theme.IRenderTheme.ThemeException;
import org.oscim.theme.ThemeFile;
import org.oscim.theme.XmlRenderThemeMenuCallback;
import org.oscim.utils.Utils;
import java.io.IOException;
import java.io.InputStream;
@@ -75,7 +76,7 @@ public class AssetsRenderTheme implements ThemeFile {
if (mInputStream != other.mInputStream) {
return false;
}
if (mRelativePathPrefix != other.mRelativePathPrefix) {
if (!Utils.equals(mRelativePathPrefix, other.mRelativePathPrefix)) {
return false;
}
return true;