Skip to content

Commit

Permalink
fix spelling typo in xray type cephalometric
Browse files Browse the repository at this point in the history
  • Loading branch information
slogan621 committed Oct 22, 2020
1 parent 39312bf commit 1fa938f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions app/src/main/java/org/thousandsmiles/tscharts_lib/XRay.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class XRay implements Serializable {
public static final String XRAY_TYPE_FULL = "f";
public static final String XRAY_TYPE_ANTERIORS_BITEWINGS = "a";
public static final String XRAY_TYPE_PANORAMIC_VIEW = "p";
public static final String XRAY_TYPE_CEPHATOMETRIC = "c";
public static final String XRAY_TYPE_CEPHALOMETRIC = "c";

public enum XRayMouthType {
XRAY_MOUTH_TYPE_NONE,
Expand Down Expand Up @@ -81,8 +81,8 @@ public String convertCSVToDBXrayType(String type)
if (type.contains("panoramic_view")) {
ret += XRAY_TYPE_PANORAMIC_VIEW;
}
if (type.contains("cephatometric")) {
ret += XRAY_TYPE_CEPHATOMETRIC;
if (type.contains("cephalometric")) {
ret += XRAY_TYPE_CEPHALOMETRIC;
}

return ret;
Expand All @@ -101,8 +101,8 @@ public ArrayList<String> getXrayTypeList()
if (m_type.contains(XRAY_TYPE_PANORAMIC_VIEW)) {
ret.add(XRAY_TYPE_PANORAMIC_VIEW);
}
if (m_type.contains(XRAY_TYPE_CEPHATOMETRIC)) {
ret.add(XRAY_TYPE_CEPHATOMETRIC);
if (m_type.contains(XRAY_TYPE_CEPHALOMETRIC)) {
ret.add(XRAY_TYPE_CEPHALOMETRIC);
}

return ret;
Expand All @@ -124,8 +124,8 @@ public String convertFromDBXrayTypeToCSV(String type)
ret += "panoramic_view";
ret += " ";
}
if (type.contains(XRAY_TYPE_CEPHATOMETRIC)) {
ret += "cephatometric";
if (type.contains(XRAY_TYPE_CEPHALOMETRIC)) {
ret += "cephalometric";
ret += " ";
}

Expand Down Expand Up @@ -199,7 +199,7 @@ public String getType() {
private boolean validateType(String type) {
return type.equals(XRAY_TYPE_FULL) ||
type.equals(XRAY_TYPE_ANTERIORS_BITEWINGS) || type.equals(XRAY_TYPE_PANORAMIC_VIEW) ||
type.equals(XRAY_TYPE_CEPHATOMETRIC);
type.equals(XRAY_TYPE_CEPHALOMETRIC);
}

public void clearType() {
Expand Down

0 comments on commit 1fa938f

Please sign in to comment.