static void aOnEnter(TextView tv, fO r) { tv.setOnEditorActionListener(new TextView.OnEditorActionListener() { public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { if (/*event != null && event.getKeyCode() == KeyEvent.KEYCODE_ENTER*/ || actionId == EditorInfo.IME_ACTION_DONE) pcallF(r); } }); }