Commit aebfccf0 authored by Pavitra Golchha's avatar Pavitra Golchha Committed by Susan Rati Lane

Remove unused context constructor param (#1890)

parent 5cec022a
...@@ -104,7 +104,7 @@ public final class WebViewer extends AndroidViewComponent { ...@@ -104,7 +104,7 @@ public final class WebViewer extends AndroidViewComponent {
webview.getSettings().setJavaScriptEnabled(true); webview.getSettings().setJavaScriptEnabled(true);
webview.setFocusable(true); webview.setFocusable(true);
// adds a way to send strings to the javascript // adds a way to send strings to the javascript
wvInterface = new WebViewInterface(webview.getContext()); wvInterface = new WebViewInterface();
webview.addJavascriptInterface(wvInterface, "AppInventor"); webview.addJavascriptInterface(wvInterface, "AppInventor");
// enable pinch zooming and zoom controls // enable pinch zooming and zoom controls
webview.getSettings().setBuiltInZoomControls(true); webview.getSettings().setBuiltInZoomControls(true);
...@@ -472,12 +472,10 @@ public final class WebViewer extends AndroidViewComponent { ...@@ -472,12 +472,10 @@ public final class WebViewer extends AndroidViewComponent {
* in the WebView * in the WebView
*/ */
public class WebViewInterface { public class WebViewInterface {
Context mContext;
String webViewString; String webViewString;
/** Instantiate the interface and set the context */ /** Instantiate the interface */
WebViewInterface(Context c) { WebViewInterface() {
mContext = c;
webViewString = " "; webViewString = " ";
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment