diff --git a/src/main/resources/modules/Android/app/src/main/java/fragment/WebViewFragment.java b/src/main/resources/modules/Android/app/src/main/java/fragment/WebViewFragment.java index 765af42c..4c45d630 100644 --- a/src/main/resources/modules/Android/app/src/main/java/fragment/WebViewFragment.java +++ b/src/main/resources/modules/Android/app/src/main/java/fragment/WebViewFragment.java @@ -1,4 +1,4 @@ -package com.example.fragment; +package ${domain}.fragment; import android.graphics.Bitmap; import android.graphics.Canvas; @@ -84,7 +84,7 @@ public class WebViewFragment extends BaseSPAFragment { } }); webView.setWebChromeClient(new WebChromeClient()); - webView.addJavascriptInterface(new WebAppInterface(this), "app"); + webView.addJavascriptInterface(new AppInterface(), "app"); webView.loadUrl(url); }