Skip to content

Commit

Permalink
Troubleshooted variable declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
jparrell committed Apr 14, 2021
1 parent 59b137e commit ae2345a
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ public class WaterWayFormFragment extends Fragment {
String nameOfSite = "";
String dateRow = "";

double outfall = 0.0;
double longitude = 0.0;
double latitude = 0.0;
double invertElevation = 0.0;
String outfall = "";
String longitude = "";
String latitude = "";
String invertElevation = "";

String type = "";
String pipeSize = "";
Expand Down Expand Up @@ -352,19 +352,19 @@ private void setupFormGen() {
formItemsGen.add(date);

FormElementTextSingleLine outfallValue = FormElementTextSingleLine.createInstance().setTitle("Outfall").setValue("0");
outfall = Double.parseDouble(outfallValue.getValue());
outfall = String.valueOf(outfallValue.getValue());
formItemsGen.add(outfallValue);

FormElementTextSingleLine longitudeValue = FormElementTextSingleLine.createInstance().setTitle("Longitude").setValue("0");
longitude = Double.parseDouble(longitudeValue.getValue());
longitude = String.valueOf(longitudeValue.getValue());
formItemsGen.add(longitudeValue);

FormElementTextSingleLine latitudeValue = FormElementTextSingleLine.createInstance().setTitle("Latitude").setValue("0");
latitude = Double.parseDouble(latitudeValue.getValue());
latitude = String.valueOf(latitudeValue.getValue());
formItemsGen.add(latitudeValue);

FormElementTextSingleLine invertElevationValue = FormElementTextSingleLine.createInstance().setTitle("Invert Elevation").setValue("0");
invertElevation = Double.parseDouble(invertElevationValue.getValue());
invertElevation = String.valueOf(invertElevationValue.getValue());
formItemsGen.add(invertElevationValue);

List<String> pipeTypeOptions = new ArrayList<String>();
Expand Down

0 comments on commit ae2345a

Please sign in to comment.