Exemple #1
0
  @Override
  public boolean commitText(CharSequence text, int newCursorPosition) {

    nativeCommitText(text.toString(), newCursorPosition);

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

    nativeSetComposingText(text.toString(), newCursorPosition);

    return super.setComposingText(text, newCursorPosition);
  }
  @Override
  public void onTextChanged(CharSequence s, int start, int before, int count) {
    if (cursor != null) {
      if (!cursor.isClosed()) {
        MyLogger.i(TAG, "onTextChanged cursor.isClosed(): " + cursor.isClosed());
        cursor.close();
      }
    }

    cursor = ApiAllFansInfoDb.getCursorBySearchKey(context, s.toString());
    adapter.changeCursor(cursor);
    MyLogger.i(TAG, "cursor.getCount(): " + cursor.getCount());
  }