Panagiotis Triantafyllou

fixed steps

......@@ -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 -> {
......