@Test public void testDeleteSurroundingText_deletesEmojiForward() { Selection.setSelection(mEditable, mTestString.emojiStartIndex()); assertTrue(mEmojiEmojiInputConnection.deleteSurroundingText(0, 1)); verify(mInputConnection, never()).deleteSurroundingText(anyInt(), anyInt()); }
@Override public boolean deleteSurroundingText(final int beforeLength, final int afterLength) { final boolean result = EmojiCompat.handleDeleteSurroundingText(this, getEditable(), beforeLength, afterLength, false ); return result || super.deleteSurroundingText(beforeLength, afterLength); }
EmojiInputConnection extends InputConnectionWrapper { @Override public boolean deleteSurroundingText(final int beforeLength, final int afterLength) { final boolean result = EmojiCompat.handleDeleteSurroundingText(this, getEditable(), beforeLength, afterLength, false ); return result || super.deleteSurroundingText(beforeLength, afterLength); } }
EmojiInputConnection extends InputConnectionWrapper { @Override public boolean deleteSurroundingText(final int beforeLength, final int afterLength) { final boolean result = EmojiCompat.handleDeleteSurroundingText(this, getEditable(), beforeLength, afterLength, false ); return result || super.deleteSurroundingText(beforeLength, afterLength); } EmojiInputConnection(
            @NonNull final TextView textView,
            @NonNull final InputConnection inputConnection,
            @NonNull final EditorInfo outAttrs); }
EmojiInputConnection extends InputConnectionWrapper { @Override public boolean deleteSurroundingText(final int beforeLength, final int afterLength) { final boolean result = EmojiCompat.handleDeleteSurroundingText(this, getEditable(), beforeLength, afterLength, false ); return result || super.deleteSurroundingText(beforeLength, afterLength); } EmojiInputConnection(
            @NonNull final TextView textView,
            @NonNull final InputConnection inputConnection,
            @NonNull final EditorInfo outAttrs); @Override boolean deleteSurroundingText(final int beforeLength, final int afterLength); @Override boolean deleteSurroundingTextInCodePoints(final int beforeLength,
            final int afterLength); }
EmojiInputConnection extends InputConnectionWrapper { @Override public boolean deleteSurroundingText(final int beforeLength, final int afterLength) { final boolean result = EmojiCompat.handleDeleteSurroundingText(this, getEditable(), beforeLength, afterLength, false ); return result || super.deleteSurroundingText(beforeLength, afterLength); } EmojiInputConnection(
            @NonNull final TextView textView,
            @NonNull final InputConnection inputConnection,
            @NonNull final EditorInfo outAttrs); @Override boolean deleteSurroundingText(final int beforeLength, final int afterLength); @Override boolean deleteSurroundingTextInCodePoints(final int beforeLength,
            final int afterLength);  }