From 25b433be42933f46716581dafb065cd85a9613ab Mon Sep 17 00:00:00 2001 From: igor Date: Wed, 3 Sep 2025 07:17:05 +0500 Subject: [PATCH] Multi select eff type --- .../java/kz/istt/locust/LocustDelActivity.java | 12 +++--------- .../java/kz/istt/locust/LocustHealthActivity.java | 14 ++++---------- 2 files changed, 7 insertions(+), 19 deletions(-) diff --git a/app/src/main/java/kz/istt/locust/LocustDelActivity.java b/app/src/main/java/kz/istt/locust/LocustDelActivity.java index bd135ad..05c928f 100644 --- a/app/src/main/java/kz/istt/locust/LocustDelActivity.java +++ b/app/src/main/java/kz/istt/locust/LocustDelActivity.java @@ -1058,7 +1058,7 @@ public class LocustDelActivity extends FragmentActivity implements LocationListe //Type of biological impact being assessed (I build a table of checkboxes) edtBiologicalImpact = findViewById(R.id.edtBiologicalImpact); guiTable.add(edtBiologicalImpact, "efficacy_impact"); - OnCheckedChangeListener occlBiologicalImpact = new OnCheckedChangeListener() + CompoundButton.OnCheckedChangeListener occlBiologicalImpact = new CompoundButton.OnCheckedChangeListener() { public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { @@ -1084,14 +1084,8 @@ public class LocustDelActivity extends FragmentActivity implements LocationListe edtBiologicalImpact.addTextChangedListener(new TextWatcher() { - public void afterTextChanged(Editable s) - { - } - - public void beforeTextChanged(CharSequence s, int start, int count, int after) - { - } - + public void afterTextChanged(Editable s){} + public void beforeTextChanged(CharSequence s, int start, int count, int after){} public void onTextChanged(CharSequence s, int start, int before, int count) { String str = LocustDelActivity.this.edtBiologicalImpact.getText().toString(); diff --git a/app/src/main/java/kz/istt/locust/LocustHealthActivity.java b/app/src/main/java/kz/istt/locust/LocustHealthActivity.java index 2baec49..0860601 100644 --- a/app/src/main/java/kz/istt/locust/LocustHealthActivity.java +++ b/app/src/main/java/kz/istt/locust/LocustHealthActivity.java @@ -1309,7 +1309,7 @@ public class LocustHealthActivity extends FragmentActivity implements LocationLi //Type of biological impact being assessed (I build a table of checkboxes) edtBiologicalImpact = findViewById(R.id.edtBiologicalImpact); - guiTableHealth.add(edtBiologicalImpact, "efficacy_impact"); + guiTableDel.add(edtBiologicalImpact, "efficacy_impact"); CompoundButton.OnCheckedChangeListener occlBiologicalImpact = new CompoundButton.OnCheckedChangeListener() { public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) @@ -1336,14 +1336,8 @@ public class LocustHealthActivity extends FragmentActivity implements LocationLi edtBiologicalImpact.addTextChangedListener(new TextWatcher() { - public void afterTextChanged(Editable s) - { - } - - public void beforeTextChanged(CharSequence s, int start, int count, int after) - { - } - + public void afterTextChanged(Editable s){} + public void beforeTextChanged(CharSequence s, int start, int count, int after){} public void onTextChanged(CharSequence s, int start, int before, int count) { String str = LocustHealthActivity.this.edtBiologicalImpact.getText().toString(); @@ -1512,7 +1506,7 @@ public class LocustHealthActivity extends FragmentActivity implements LocationLi //Type of biological impact being assessed (I build a table of checkboxes) edtEffTypeImpact = findViewById(R.id.edtEffTypeImpact); - guiTableDel.add(edtEffTypeImpact, "efficacy_impact_type"); + guiTableHealth.add(edtEffTypeImpact, "efficacy_impact_type"); CompoundButton.OnCheckedChangeListener occlEffTypeImpact = new CompoundButton.OnCheckedChangeListener() { public void onCheckedChanged(CompoundButton buttonView, boolean isChecked)