• Avatar
    Permanently Deleted User

    After adding logs to library it seems like onTextChanged is never triggered, but onKeyDown event inside library still notices KEYCODE_ENTER, as it does on the standard and triggers onTextChanged afterwards. Tried switching to AppComat EditText but it didn't do the trick.

    @Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {

    if (keyCode==KeyEvent.KEYCODE_ENTER) {

    Timber.d("ENTER TRIGGERED");

    return true;
    }
    return super.onKeyDown(keyCode, event);
    }

    @Override
    protected void onTextChanged(CharSequence text, int start, int lengthBefore, int lengthAfter) {

    //Never reaches to here with SwiftKey, as it does with standard
    Timber.d("ON TEXT CHANGED BF CALL SUPER");

    super.onTextChanged(text, start, lengthBefore, lengthAfter);

    Timber.d("ON TEXT CHANGED");

    ....




    0
    إجراءات التعليق ارتباط ثابت
  • Avatar
    Permanently Deleted User

    nvm resolved this issue. You can delete the post

    0
    إجراءات التعليق ارتباط ثابت