change while to for
All checks were successful
/ Auto-Build-App (push) Successful in 2m22s

This commit is contained in:
pietru 2024-09-29 23:38:24 +02:00
parent 8575693fe5
commit d1779eb9a8

View file

@ -69,16 +69,14 @@ public class CustomScreen extends BaseItemScreen {
}
static void build_ui(JsonValue layout,Table table, CustomScreen screen){
Iterator<JsonValue> iter = layout.iterator();
while (iter.hasNext()){
JsonValue data = iter.next();
String type = data.getString("type","");
for (JsonValue data : layout) {
String type = data.getString("type", "");
if (type.isEmpty())
continue;
if (!components.containsKey(type.toLowerCase()))
continue;
TriConsumer<Table, CustomScreen,JsonValue> component = components.get(type.toLowerCase());
component.accept(table,screen,data);
TriConsumer<Table, CustomScreen, JsonValue> component = components.get(type.toLowerCase());
component.accept(table, screen, data);
}
}