File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
app/src/main/java/com/blurr/voice/utilities Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -227,6 +227,9 @@ class VisualFeedbackManager private constructor(private val context: Context) {
227227 onSubmit : (String ) -> Unit ,
228228 onOutsideTap : () -> Unit
229229 ) {
230+ // This method creates an overlay input box that appears over other apps
231+ // Key fix: Proper keyboard positioning using WindowInsetsCompat to prevent
232+ // the input box from being hidden behind the keyboard when it appears
230233 mainHandler.post {
231234 if (inputBoxView?.isAttachedToWindow == true ) {
232235 // If already showing, just ensure focus
@@ -325,6 +328,8 @@ class VisualFeedbackManager private constructor(private val context: Context) {
325328
326329 try {
327330 windowManager.addView(inputBoxView, params)
331+ Log .d(TAG , " Input box added with initial y position: ${params.y} " )
332+
328333 // **IMPROVEMENT**: Explicitly request focus and show the keyboard
329334 inputField?.requestFocus()
330335 val imm = context.getSystemService(Context .INPUT_METHOD_SERVICE ) as InputMethodManager
You can’t perform that action at this time.
0 commit comments