You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/06/29 21:56:03 UTC

[GitHub] [cordova-plugin-dialogs] Thul999 edited a comment on issue #139: Prompt dialog won't focus nor show keyboard on Android until manually tapping the text input.

Thul999 edited a comment on issue #139:
URL: https://github.com/apache/cordova-plugin-dialogs/issues/139#issuecomment-651360505


   I think I found the solution, I just need to keep testing on more devices. I added
   
   `AlertDialog dialog = dlg.create();`
   `dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);`
   `dialog.show();`
   
   to `changeTextDirection` function on Notification.java. Also imported WindowManager `import android.view.WindowManager;`
   
   Update: This worked perfectly on Android 7.x, but not on 9.x, but after adding `promptInput.requestFocus()` after the `changeTextDirection` function call, now it also works on the latter.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org