lyQuantity.setErrorEnabled(false);
} else {
lyQuantity.setError(context.getResources().getString(R.string.msg_inventory_check_failed));
}
}
<BUG>protected void setItemViewListener(final InventoryViewModel viewModel) {
</BUG>
final EditTextWatcher textWatcher = new EditTextWatcher(viewModel);
txQuantity.removeTextChangedListener(textWatcher);
checkBox.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {

lyQuantity.setErrorEnabled(false);
} else {
lyQuantity.setError(context.getResources().getString(R.string.msg_inventory_check_failed));
}
}
protected void setItemViewListener(final AddDrugsToViaInventoryViewModel viewModel) {
final EditTextWatcher textWatcher = new EditTextWatcher(viewModel);
txQuantity.removeTextChangedListener(textWatcher);
checkBox.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
