|
|
@ -1,4 +1,4 @@
|
|
|
|
package com.example.fragment;
|
|
|
|
package ${domain}.fragment;
|
|
|
|
|
|
|
|
|
|
|
|
import android.graphics.Bitmap;
|
|
|
|
import android.graphics.Bitmap;
|
|
|
|
import android.graphics.Canvas;
|
|
|
|
import android.graphics.Canvas;
|
|
|
@ -84,7 +84,7 @@ public class WebViewFragment extends BaseSPAFragment {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
webView.setWebChromeClient(new WebChromeClient());
|
|
|
|
webView.setWebChromeClient(new WebChromeClient());
|
|
|
|
webView.addJavascriptInterface(new WebAppInterface(this), "app");
|
|
|
|
webView.addJavascriptInterface(new AppInterface(), "app");
|
|
|
|
webView.loadUrl(url);
|
|
|
|
webView.loadUrl(url);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|