You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by er...@apache.org on 2021/07/28 05:43:17 UTC

[cordova-plugin-splashscreen] branch master updated: fix: refocus after webview visible (#186) (#314)

This is an automated email from the ASF dual-hosted git repository.

erisu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-plugin-splashscreen.git


The following commit(s) were added to refs/heads/master by this push:
     new 66d1e00  fix: refocus after webview visible (#186) (#314)
66d1e00 is described below

commit 66d1e00e003fb2f935cdbb8a5b0e47b416836b68
Author: Ken Naito <fi...@gmail.com>
AuthorDate: Wed Jul 28 14:43:09 2021 +0900

    fix: refocus after webview visible (#186) (#314)
---
 src/android/SplashScreen.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/android/SplashScreen.java b/src/android/SplashScreen.java
index 428df33..6f2252c 100644
--- 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();

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