knight9999 edited a comment on issue #186:
URL:
https://github.com/apache/cordova-plugin-splashscreen/issues/186#issuecomment-884172802
Hi. Could someone please try to improve following code in
`SplashScreen.java` in cordova-plugin-splashscreen?
```
--- a/src/android/SplashScreen.java
+++ b/src/android/SplashScreen.java
@@ -194,6 +194,7 @@ public class SplashScreen extends CordovaPlugin {
} else if ("spinner".equals(id)) {
if ("stop".equals(data.toString())) {
getView().setVisibility(View.VISIBLE);
+ getView().requestFocus();
}
} else if ("onReceivedError".equals(id)) {
this.spinnerStop();
```
I guess that `dispatchKeyEvent` method is not called if the webview is not
focused.
Above modification requests the focus and `dispatchKeyEvent` may work well.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]