Merge pull request #618 from hasuniea/master

resolved #616
revert-dabc3590
Harshan Liyanage 8 years ago committed by GitHub
commit 893eccd817

@ -487,12 +487,14 @@ public class AndroidAPIUtils {
for (JsonElement element : jsonArray) {
// if (((JsonObject) element).entrySet().iterator().next().getValue().getAsString().equalsIgnoreCase(needed));
for (Map.Entry<String, JsonElement> ob : ((JsonObject) element).entrySet()) {
if (exist) {
return ob.getValue().getAsString().replace("%", "");
}
JsonElement val = ob.getValue();
if (val != null && !val.isJsonNull() && ob.getValue().getAsString().equalsIgnoreCase(needed)) {
exist = true;
if (val != null && !val.isJsonNull()) {
if (exist) {
return val.getAsString().replace("%", "");
}
if (val.getAsString().equalsIgnoreCase(needed)) {
exist = true;
}
}
}
}

Loading…
Cancel
Save