From 342bbba2b7a3cf1af202244030297554331f6aca Mon Sep 17 00:00:00 2001 From: Shubham Goyal Date: Thu, 28 Sep 2023 18:10:19 -0500 Subject: [PATCH] Revert "Xml Model Change: Adds action in detail field" --- .../java/org/commcare/suite/model/DetailField.java | 11 ----------- src/main/java/org/commcare/xml/DetailFieldParser.java | 7 ++----- .../backend/suite/model/test/AppStructureTests.java | 10 ---------- src/test/resources/app_structure/suite.xml | 11 ----------- 4 files changed, 2 insertions(+), 37 deletions(-) diff --git a/src/main/java/org/commcare/suite/model/DetailField.java b/src/main/java/org/commcare/suite/model/DetailField.java index 29758edcc7..33c09c20ec 100644 --- a/src/main/java/org/commcare/suite/model/DetailField.java +++ b/src/main/java/org/commcare/suite/model/DetailField.java @@ -67,7 +67,6 @@ public class DetailField implements Externalizable { private String verticalAlign; private String fontSize; private String cssID; - private Action action; public DetailField() { } @@ -202,7 +201,6 @@ public void readExternal(DataInputStream in, PrototypeFactory pf) throws IOExcep horizontalAlign = ExtUtil.nullIfEmpty(ExtUtil.readString(in)); verticalAlign = ExtUtil.nullIfEmpty(ExtUtil.readString(in)); cssID = ExtUtil.nullIfEmpty(ExtUtil.readString(in)); - action = (Action)ExtUtil.read(in, new ExtWrapNullable(new ExtWrapTagged()), pf); } @Override @@ -232,7 +230,6 @@ public void writeExternal(DataOutputStream out) throws IOException { ExtUtil.writeString(out, ExtUtil.emptyIfNull(horizontalAlign)); ExtUtil.writeString(out, ExtUtil.emptyIfNull(verticalAlign)); ExtUtil.writeString(out, ExtUtil.emptyIfNull(cssID)); - ExtUtil.write(out, new ExtWrapNullable(action == null ? null : new ExtWrapTagged(action))); } public int getGridX() { @@ -267,10 +264,6 @@ public String getCssId() { return cssID; } - public Action getAction() { - return action; - } - public static class Builder { final DetailField field; @@ -389,9 +382,5 @@ public void setFontSize(String fontSize) { public void setCssID(String id) { field.cssID = id; } - - public void setAction(Action action) { - field.action = action; - } } } diff --git a/src/main/java/org/commcare/xml/DetailFieldParser.java b/src/main/java/org/commcare/xml/DetailFieldParser.java index 2159959896..caf439a057 100644 --- a/src/main/java/org/commcare/xml/DetailFieldParser.java +++ b/src/main/java/org/commcare/xml/DetailFieldParser.java @@ -73,9 +73,9 @@ public DetailField parse() throws InvalidStructureException, IOException, XmlPul } else { throw new InvalidStructureException("detail with no