Update native tests

This commit is contained in:
Ian Clelland 2014-10-30 15:08:26 -04:00
parent ed78b557cd
commit 198364afb9
2 changed files with 2 additions and 3 deletions

View File

@ -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");

View File

@ -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");
}