+
This commit is contained in:
@ -1126,9 +1126,31 @@ public class LocustDelActivity extends FragmentActivity implements LocationListe
|
||||
}
|
||||
dboh.close();
|
||||
|
||||
edtBiologicalImpact.addTextChangedListener(new TextWatcher()
|
||||
{
|
||||
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();
|
||||
for (int i = 0; i < glBiologicalImpact.getChildCount(); i++) {
|
||||
View child = glBiologicalImpact.getChildAt(i);
|
||||
if (child instanceof CheckBox) {
|
||||
CheckBox cb = (CheckBox) child;
|
||||
String val = cb.getTag().toString();
|
||||
if(str.contains(val) && !cb.isChecked()) {
|
||||
cb.setChecked(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
edtEffMortality = (EditText) findViewById(R.id.edtEffMortality); // смертность саранчи(%)
|
||||
guiTable.add(edtEffMortality, "efficacy_mortality");
|
||||
|
||||
Reference in New Issue
Block a user