Fix Romaji tags not being properly implemented.

This commit is contained in:
sigonasr2 2020-04-12 13:56:11 +09:00
parent 7089545623
commit 04e1585f83
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -89,7 +89,7 @@ public class PixivManager {
JSONObject tag = tagsArray.getJSONObject(i);
String ENTag="";
String romaji="";
if (tag.has("romaji") && !tag.isNull("romaji")) {
if (tag.has("romaji")) {
romaji = tag.getString("romaji");
}
if (tag.has("translation")) {
@ -99,7 +99,7 @@ public class PixivManager {
ENTag = translationObj.getString("en");
}
} else
if (tag.has("tag") /*&& romaji.length()==0 */&& !tag.getString("tag").matches("[ -~]")) {
if (tag.has("tag") /*&& romaji.length()==0 */&& tag.getString("tag").matches("[ -~]")) {
hasEnglishTag=true;
ENTag = tag.getString("tag");
}