| | |
| | | NVToggle.setOnClickListener(baClickListener); |
| | | NNToggle.setOnClickListener(baClickListener); |
| | | |
| | | PCInput.addTextChangedListener( |
| | | new TextWatcher() { |
| | | @Override |
| | | public void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) { |
| | | } |
| | | TextWatcher textWatcher = new TextWatcher() { |
| | | @Override |
| | | public void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) { |
| | | } |
| | | |
| | | @Override |
| | | public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) { |
| | | } |
| | | @Override |
| | | public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) { |
| | | } |
| | | |
| | | @Override |
| | | public void afterTextChanged(Editable editable) { |
| | | updateResults(); |
| | | } |
| | | } |
| | | ); |
| | | @Override |
| | | public void afterTextChanged(Editable editable) { |
| | | updateResults(); |
| | | } |
| | | }; |
| | | |
| | | TricksInput.addTextChangedListener( |
| | | new TextWatcher() { |
| | | @Override |
| | | public void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) { |
| | | } |
| | | |
| | | @Override |
| | | public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) { |
| | | } |
| | | |
| | | @Override |
| | | public void afterTextChanged(Editable editable) { |
| | | updateResults(); |
| | | } |
| | | } |
| | | ); |
| | | PCInput.addTextChangedListener(textWatcher); |
| | | TricksInput.addTextChangedListener(textWatcher); |
| | | } |
| | | |
| | | public void updateResults() { |