Skip to content

Commit b1f600a

Browse files
authored
Merge pull request #1049 from wordpress-mobile/issue/fix-backspace-override-interrerence-with-suggestions
Fixed autosuggestion issues (non Samsung)
2 parents fedea73 + af0c1b0 commit b1f600a

File tree

2 files changed

+2
-125
lines changed

2 files changed

+2
-125
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/DeleteOverrideInputConnection.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package org.wordpress.aztec
22

33
import android.view.inputmethod.InputConnection
4+
import android.view.inputmethod.InputConnectionWrapper
45

56
/**
67
* Wrapper around proprietary Samsung InputConnection. Forwards all the calls to it, except for getExtractedText and
@@ -9,7 +10,7 @@ import android.view.inputmethod.InputConnection
910
class DeleteOverrideInputConnection(
1011
inputConnection: InputConnection,
1112
private val shouldDeleteSurroundingText: (beforeLength: Int, afterLength: Int) -> Boolean
12-
) : InputConnectionWrapper(inputConnection) {
13+
) : InputConnectionWrapper(inputConnection, true) {
1314
override fun deleteSurroundingText(beforeLength: Int, afterLength: Int): Boolean {
1415
return shouldDeleteSurroundingText(beforeLength, afterLength)
1516
&& super.deleteSurroundingText(beforeLength, afterLength)

aztec/src/main/kotlin/org/wordpress/aztec/InputConnectionWrapper.kt

Lines changed: 0 additions & 124 deletions
This file was deleted.

0 commit comments

Comments
 (0)