Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -420,7 +420,7 @@ public class WarpView extends WebView implements DefaultLifecycleObserver { | ... | @@ -420,7 +420,7 @@ public class WarpView extends WebView implements DefaultLifecycleObserver { |
420 | EventBus.getDefault().register(this); | 420 | EventBus.getDefault().register(this); |
421 | 421 | ||
422 | if (mWebviewLoaded) { | 422 | if (mWebviewLoaded) { |
423 | - String scriptSourceInit = "webviewDidFocus(true);"; | 423 | + String scriptSourceInit = "webviewDidFocus(" + String.valueOf(mWebviewLoaded) + ");"; |
424 | WarpView.this.evaluateJavascript(scriptSourceInit, s -> { | 424 | WarpView.this.evaluateJavascript(scriptSourceInit, s -> { |
425 | 425 | ||
426 | }); | 426 | }); |
... | @@ -781,7 +781,7 @@ public class WarpView extends WebView implements DefaultLifecycleObserver { | ... | @@ -781,7 +781,7 @@ public class WarpView extends WebView implements DefaultLifecycleObserver { |
781 | @Override | 781 | @Override |
782 | public void onPageFinished(WebView view, String url) { | 782 | public void onPageFinished(WebView view, String url) { |
783 | mWebviewLoaded = true; | 783 | mWebviewLoaded = true; |
784 | - String scriptSourceInit = "webviewDidFocus(true);"; | 784 | + String scriptSourceInit = "webviewDidFocus(" + String.valueOf(mWebviewLoaded) + ");"; |
785 | view.evaluateJavascript(scriptSourceInit, s -> { | 785 | view.evaluateJavascript(scriptSourceInit, s -> { |
786 | 786 | ||
787 | }); | 787 | }); | ... | ... |
-
Please register or login to post a comment