Esempio n. 1
0
  @Override
  public boolean commitText(CharSequence text, int newCursorPosition) {

    nativeCommitText(text.toString(), newCursorPosition);

    return super.commitText(text, newCursorPosition);
  }
Esempio n. 2
0
  @Override
  public boolean setComposingText(CharSequence text, int newCursorPosition) {

    nativeSetComposingText(text.toString(), newCursorPosition);

    return super.setComposingText(text, newCursorPosition);
  }
 /** returns true of the string is empty or null */
 private static boolean isEmptyOrNull(CharSequence s) {
   return s == null || (s.length() == 0);
 }