mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
resolved #616
This commit is contained in:
parent
42cc311f00
commit
7de234c164
@ -487,12 +487,16 @@ 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 (exist) {
|
||||
{
|
||||
return val.getAsString().replace("%", "");
|
||||
}
|
||||
}
|
||||
if (val.getAsString().equalsIgnoreCase(needed)) {
|
||||
exist = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user