@@ -5,7 +5,6 @@ import android.os.Bundle
55import android.text.Editable
66import android.text.Selection
77import android.text.Spanned
8- import android.text.TextUtils
98import android.text.style.SuggestionSpan
109import android.view.KeyEvent
1110import android.view.inputmethod.BaseInputConnection
@@ -22,7 +21,7 @@ import android.view.inputmethod.InputContentInfo
2221 */
2322class SamsungInputConnection (
2423 private val mTextView : AztecText ,
25- private val baseInputConnection : InputConnection ,
24+ private val baseInputConnection : InputConnection
2625) : BaseInputConnection(mTextView, true ) {
2726
2827 override fun getEditable (): Editable {
@@ -178,11 +177,11 @@ class SamsungInputConnection(
178177 return baseInputConnection.getSelectedText(flags)
179178 }
180179
181- override fun getTextAfterCursor (length : Int , flags : Int ): CharSequence {
180+ override fun getTextAfterCursor (length : Int , flags : Int ): CharSequence? {
182181 return baseInputConnection.getTextAfterCursor(length, flags)
183182 }
184183
185- override fun getTextBeforeCursor (length : Int , flags : Int ): CharSequence {
184+ override fun getTextBeforeCursor (length : Int , flags : Int ): CharSequence? {
186185 return baseInputConnection.getTextBeforeCursor(length, flags)
187186 }
188187}
0 commit comments