MainActivity.java 559 B

123456789101112131415161718192021
  1. //% IMPORTS
  2. import autosuggest.CustomInputConnection;
  3. //% END
  4. //% QUAD_SURFACE_ON_CREATE_INPUT_CONNECTION
  5. // Needed to fix error: unreachable statement in Java
  6. if (true) {
  7. outAttrs.inputType = EditorInfo.TYPE_CLASS_TEXT
  8. | EditorInfo.TYPE_TEXT_FLAG_AUTO_CORRECT;
  9. outAttrs.imeOptions = EditorInfo.IME_FLAG_NO_FULLSCREEN
  10. | EditorInfo.IME_ACTION_NONE;
  11. // fullEditor is false, but we might set this to true for enabling
  12. // text selection, and copy/paste. Lets see.
  13. return new CustomInputConnection(this, false);
  14. }
  15. //% END