diff --git a/test/src/org/apache/cordova/test/CordovaWebViewTestActivity.java b/test/src/org/apache/cordova/test/CordovaWebViewTestActivity.java index 43e0b2bc..1978cfc3 100644 --- a/test/src/org/apache/cordova/test/CordovaWebViewTestActivity.java +++ b/test/src/org/apache/cordova/test/CordovaWebViewTestActivity.java @@ -51,8 +51,7 @@ public class CordovaWebViewTestActivity extends Activity implements CordovaInter Config.init(this); cordovaWebView = (CordovaWebView) findViewById(R.id.cordovaWebView); - cordovaWebView.init(this, Config.getPluginEntries(), Config.getWhitelist(), - Config.getExternalWhitelist(), Config.getPreferences()); + cordovaWebView.init(this, Config.getPluginEntries(), Config.getPreferences()); cordovaWebView.loadUrl("file:///android_asset/www/index.html"); diff --git a/test/src/org/apache/cordova/test/menus.java b/test/src/org/apache/cordova/test/menus.java index 9bde03e9..4c65ed5f 100755 --- a/test/src/org/apache/cordova/test/menus.java +++ b/test/src/org/apache/cordova/test/menus.java @@ -34,7 +34,7 @@ public class menus extends CordovaActivity { super.onCreate(savedInstanceState); // need the title to be shown (config.xml) for the options menu to be visible super.init(); - super.registerForContextMenu(super.appView); + super.registerForContextMenu(super.appView.getView()); super.loadUrl("file:///android_asset/www/menus/index.html"); }