Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_android_sdk_maven_plugin
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Panagiotis Triantafyllou
2024-03-01 14:37:59 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b0c547ca04c8245ce88909fa21f05ce8c73b13af
b0c547ca
1 parent
7ea101a0
fixed steps
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
5 deletions
warply_android_sdk/src/main/java/ly/warp/sdk/views/WarpView.java
warply_android_sdk/src/main/java/ly/warp/sdk/views/WarpView.java
View file @
b0c547c
...
...
@@ -419,7 +419,7 @@ public class WarpView extends WebView implements DefaultLifecycleObserver {
EventBus
.
getDefault
().
register
(
this
);
if
(
mWebviewLoaded
)
{
String
scriptSourceInit
=
"webviewDidFocus("
+
String
.
valueOf
(
mWebviewLoaded
)
+
");"
;
String
scriptSourceInit
=
"webviewDidFocus("
+
String
.
valueOf
(
mWebviewLoaded
)
+
"
,"
+
String
.
valueOf
(
isMyServiceRunning
(
WarplyHealthService
.
class
))
+
"
);"
;
WarpView
.
this
.
evaluateJavascript
(
scriptSourceInit
,
s
->
{
});
...
...
@@ -784,10 +784,6 @@ public class WarpView extends WebView implements DefaultLifecycleObserver {
@Override
public
void
onPageFinished
(
WebView
view
,
String
url
)
{
mWebviewLoaded
=
true
;
String
scriptSourceInit
=
"webviewDidFocus("
+
String
.
valueOf
(
mWebviewLoaded
)
+
");"
;
view
.
evaluateJavascript
(
scriptSourceInit
,
s
->
{
});
String
scriptSource
=
"passParams("
+
WarpUtils
.
getWebviewParams
(
getContext
())
+
");"
;
view
.
evaluateJavascript
(
scriptSource
,
s
->
{
...
...
Please
register
or
login
to post a comment