app/src/main/java/fr/neamar/kiss/forwarder/ExperienceTweaks.java
// Ensure the keyboard uses the right input method
Ensure the keyboard uses the right input method
Ensure the keyboard uses the right input method
private void adjustInputType() {
        int currentInputType = mainActivity.searchEditText.getInputType();
        int requiredInputType;
        if (isSuggestionsEnabled()) {
            requiredInputType = InputType.TYPE_CLASS_TEXT;
        } else {
            if (isNonCompliantKeyboard()) {
                requiredInputType = INPUT_TYPE_WORKAROUND;
            } else {
                requiredInputType = INPUT_TYPE_STANDARD;
            }
        }
        if (currentInputType != requiredInputType) {
            mainActivity.searchEditText.setInputType(requiredInputType);
        }
    }
private void adjustInputType ( ) { int currentInputType = mainActivity . searchEditText . getInputType ( ) ; int requiredInputType ; if ( isSuggestionsEnabled ( ) ) { requiredInputType = InputType . TYPE_CLASS_TEXT ; } else { if ( isNonCompliantKeyboard ( ) ) { requiredInputType = INPUT_TYPE_WORKAROUND ; } else { requiredInputType = INPUT_TYPE_STANDARD ; } } if ( currentInputType != requiredInputType ) { mainActivity . searchEditText . setInputType ( requiredInputType ) ; } }
Ensure the keyboard uses the right input method
Ensure the keyboard uses the right input method