@Override public void onTextChanged(CharSequence s, int start, int before, int count) { if (converterViewHolder.aEditText.isFocused()) { try { double aValue = Double.parseDouble(converterViewHolder.aEditText.getText().toString()); double bValue = aValue * currency.getExchangeRate(); converterViewHolder.bEditText.setText(String.format(CURRENCY_FORMAT, bValue)); } catch (NumberFormatException ignore) { /* IGNORE */ } } }