Skip to content

Commit

Permalink
work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
will2312 committed Mar 28, 2021
1 parent e774cf6 commit 87264ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,6 @@ public class DryWeatherScreening extends AppCompatActivity{
boolean needMaintenance = false;
boolean screenOK = false;


//I assume onCreate is important so I will leave it unchanged
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_sample_fordm);
recyclerView = findViewById(R.id.recyclerView2);
setupForm();
}
private void setupForm() {
formBuilder = new FormBuilder(this, recyclerView);
FormHeader title = (FormHeader) new FormHeader().setTitle("Dry Weather Screening");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import me.riddhimanadib.formmaster.model.FormElementTextSingleLine;
import me.riddhimanadib.formmaster.model.FormHeader;

public class General {
public class General extends AppCompatActivity{
//HQ form
private FormBuilder formBuilder;
private RecyclerView recyclerView;
Expand All @@ -43,22 +43,8 @@ public class General {
String pipeSize = "";
String channelBottomWidth = "";
String receivingWater = "";
String routineEvaluation = "";
String complaintInvestigation = "";

String comments = "";

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_sample_fordm);
recyclerView = findViewById(R.id.recyclerView2);
setupForm();
}

private void setupForm() {
formBuilder = new FormBuilder(this, recyclerView);

FormHeader title = (FormHeader) new FormHeader().setTitle("Report");

FormElementTextSingleLine name = FormElementTextSingleLine.createInstance().setTitle("Name of Inspector").setValue("");
Expand Down Expand Up @@ -103,7 +89,7 @@ private void setupForm() {
FormElementPickerMulti pipeSizeValue = FormElementPickerMulti.createInstance().setTitle("Pipe Size").setOptions(pipeSizeOptions);
pipeSize = pipeSizeValue.getValue();

List<String> channelWidthOptions = new ArrayList<String;
List<String> channelWidthOptions = new ArrayList<String>();
channelWidthOptions.add("2\"");
channelWidthOptions.add("4\"");
channelWidthOptions.add("6\"");
Expand Down Expand Up @@ -131,15 +117,6 @@ private void setupForm() {

FormElementPickerMulti receiving = FormElementPickerMulti.createInstance().setTitle("Receiving Water").setOptions(receivingWaterOptions);
receivingWater = receiving.getValue();
/*
FormElementTextSingleLine routine = FormElementTextSingleLine.createInstance().setTitle("Routine Evaluation").setValue("");
routineEvaluation = routine.getValue();
FormElementTextSingleLine complaint = FormElementTextSingleLine.createInstance().setTitle("Complaint Investigation").setValue("");
complaintInvestigation = complaint.getValue();
FormElementTextSingleLine commentsValue = FormElementTextSingleLine.createInstance().setTitle("Comments").setValue("");
comments = commentsValue.getValue();*/
}

public String getName() {
Expand Down Expand Up @@ -186,15 +163,4 @@ public String getReceivingWater() {
return receivingWater;
}

/*public String getRoutineEvaluation() {
return routineEvaluation;
}
public String getComplaintInvestigation() {
return complaintInvestigation;
}
public String getComments() {
return comments;
}*/
}

0 comments on commit 87264ef

Please sign in to comment.