@@ -213,19 +213,19 @@ internal class RecordingInputConnection(
213
213
}
214
214
215
215
override fun setSelection (start : Int , end : Int ): Boolean = ensureActive {
216
- if (DEBUG ) { logDebug(" setSelection($start , $end " ) }
216
+ if (DEBUG ) { logDebug(" setSelection($start , $end ) " ) }
217
217
addEditCommandWithBatch(SetSelectionCommand (start, end))
218
218
return true
219
219
}
220
220
221
221
override fun finishComposingText (): Boolean = ensureActive {
222
- if (DEBUG ) { logDebug(" finishComposingText(" ) }
222
+ if (DEBUG ) { logDebug(" finishComposingText() " ) }
223
223
addEditCommandWithBatch(FinishComposingTextCommand ())
224
224
return true
225
225
}
226
226
227
227
override fun sendKeyEvent (event : KeyEvent ): Boolean = ensureActive {
228
- if (DEBUG ) { logDebug(" sendKeyEvent($event " ) }
228
+ if (DEBUG ) { logDebug(" sendKeyEvent($event ) " ) }
229
229
eventCallback.onKeyEvent(event)
230
230
return true
231
231
}
@@ -261,13 +261,13 @@ internal class RecordingInputConnection(
261
261
}
262
262
263
263
override fun requestCursorUpdates (cursorUpdateMode : Int ): Boolean = ensureActive {
264
- if (DEBUG ) { logDebug(" requestCursorUpdates($cursorUpdateMode " ) }
264
+ if (DEBUG ) { logDebug(" requestCursorUpdates($cursorUpdateMode ) " ) }
265
265
Log .w(TAG , " requestCursorUpdates is not supported" )
266
266
return false
267
267
}
268
268
269
269
override fun getExtractedText (request : ExtractedTextRequest ? , flags : Int ): ExtractedText {
270
- if (DEBUG ) { logDebug(" getExtractedText($request , $flags " ) }
270
+ if (DEBUG ) { logDebug(" getExtractedText($request , $flags ) " ) }
271
271
extractedTextMonitorMode = (flags and InputConnection .GET_EXTRACTED_TEXT_MONITOR ) != 0
272
272
if (extractedTextMonitorMode) {
273
273
currentExtractedTextRequestToken = request?.token ? : 0
@@ -296,13 +296,13 @@ internal class RecordingInputConnection(
296
296
// /////////////////////////////////////////////////////////////////////////////////////////////
297
297
298
298
override fun performContextMenuAction (id : Int ): Boolean = ensureActive {
299
- if (DEBUG ) { logDebug(" performContextMenuAction($id " ) }
299
+ if (DEBUG ) { logDebug(" performContextMenuAction($id ) " ) }
300
300
Log .w(TAG , " performContextMenuAction is not supported" )
301
301
return false
302
302
}
303
303
304
304
override fun performEditorAction (editorAction : Int ): Boolean = ensureActive {
305
- if (DEBUG ) { logDebug(" performEditorAction($editorAction " ) }
305
+ if (DEBUG ) { logDebug(" performEditorAction($editorAction ) " ) }
306
306
val imeAction = when (editorAction) {
307
307
EditorInfo .IME_ACTION_UNSPECIFIED -> ImeAction .Default
308
308
EditorInfo .IME_ACTION_DONE -> ImeAction .Done
@@ -325,7 +325,7 @@ internal class RecordingInputConnection(
325
325
// /////////////////////////////////////////////////////////////////////////////////////////////
326
326
327
327
override fun commitCompletion (text : CompletionInfo ? ): Boolean = ensureActive {
328
- if (DEBUG ) { logDebug(" commitCompletion(${text?.text} " ) }
328
+ if (DEBUG ) { logDebug(" commitCompletion(${text?.text} ) " ) }
329
329
// We don't support this callback.
330
330
// The API documents says this should return if the input connection is no longer valid, but
331
331
// The Chromium implementation already returning false, so assuming it is safe to return
@@ -342,12 +342,12 @@ internal class RecordingInputConnection(
342
342
}
343
343
344
344
override fun getHandler (): Handler ? {
345
- if (DEBUG ) { logDebug(" getHandler(" ) }
345
+ if (DEBUG ) { logDebug(" getHandler() " ) }
346
346
return null // Returns null means using default Handler
347
347
}
348
348
349
349
override fun clearMetaKeyStates (states : Int ): Boolean = ensureActive {
350
- if (DEBUG ) { logDebug(" clearMetaKeyStates($states " ) }
350
+ if (DEBUG ) { logDebug(" clearMetaKeyStates($states ) " ) }
351
351
// We don't support this callback.
352
352
// The API documents says this should return if the input connection is no longer valid, but
353
353
// The Chromium implementation already returning false, so assuming it is safe to return
@@ -357,12 +357,12 @@ internal class RecordingInputConnection(
357
357
}
358
358
359
359
override fun reportFullscreenMode (enabled : Boolean ): Boolean {
360
- if (DEBUG ) { logDebug(" reportFullscreenMode($enabled " ) }
360
+ if (DEBUG ) { logDebug(" reportFullscreenMode($enabled ) " ) }
361
361
return false // This value is ignored according to the API docs.
362
362
}
363
363
364
364
override fun getCursorCapsMode (reqModes : Int ): Int {
365
- if (DEBUG ) { logDebug(" getCursorCapsMode($reqModes " ) }
365
+ if (DEBUG ) { logDebug(" getCursorCapsMode($reqModes ) " ) }
366
366
return TextUtils .getCapsMode(mTextFieldValue.text, mTextFieldValue.selection.min, reqModes)
367
367
}
368
368
0 commit comments