Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

fix: set correct flag

mcfans6d8272472a9c
diff --git a/flutter/android/app/src/main/kotlin/com/carriez/flutter_hbb/InputService.kt b/flutter/android/app/src/main/kotlin/com/carriez/flutter_hbb/InputService.kt
index 57a231975..47c8f302c 100644
--- a/flutter/android/app/src/main/kotlin/com/carriez/flutter_hbb/InputService.kt
+++ b/flutter/android/app/src/main/kotlin/com/carriez/flutter_hbb/InputService.kt
@@ -548,9 +548,10 @@ class InputService : AccessibilityService() {
ctx = this
val info = AccessibilityServiceInfo()
if (Build.VERSION.SDK_INT >= 33) {
- info.flags = FLAG_INPUT_METHOD_EDITOR
+ info.flags = FLAG_INPUT_METHOD_EDITOR or FLAG_RETRIEVE_INTERACTIVE_WINDOWS
+ } else {
+ info.flags = FLAG_RETRIEVE_INTERACTIVE_WINDOWS
}
- info.flags = FLAG_RETRIEVE_INTERACTIVE_WINDOWS
setServiceInfo(info)
fakeEditTextForTextStateCalculation = EditText(this)
// Size here doesn't matter, we won't show this view.