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 {
webview.getSettings().setJavaScriptEnabled(true);
webview.setFocusable(true);
// adds a way to send strings to the javascript
wvInterface = new WebViewInterface(webview.getContext());
wvInterface = new WebViewInterface();
webview.addJavascriptInterface(wvInterface, "AppInventor");
// enable pinch zooming and zoom controls
webview.getSettings().setBuiltInZoomControls(true);
......@@ -472,12 +472,10 @@ public final class WebViewer extends AndroidViewComponent {
* in the WebView
*/
public class WebViewInterface {
Context mContext;
String webViewString;
/** Instantiate the interface and set the context */
WebViewInterface(Context c) {
mContext = c;
/** Instantiate the interface */
WebViewInterface() {
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