mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-18 22:52:54 +08:00
Update native tests
This commit is contained in:
parent
ed78b557cd
commit
198364afb9
@ -51,8 +51,7 @@ public class CordovaWebViewTestActivity extends Activity implements CordovaInter
|
|||||||
Config.init(this);
|
Config.init(this);
|
||||||
|
|
||||||
cordovaWebView = (CordovaWebView) findViewById(R.id.cordovaWebView);
|
cordovaWebView = (CordovaWebView) findViewById(R.id.cordovaWebView);
|
||||||
cordovaWebView.init(this, Config.getPluginEntries(), Config.getWhitelist(),
|
cordovaWebView.init(this, Config.getPluginEntries(), Config.getPreferences());
|
||||||
Config.getExternalWhitelist(), Config.getPreferences());
|
|
||||||
|
|
||||||
cordovaWebView.loadUrl("file:///android_asset/www/index.html");
|
cordovaWebView.loadUrl("file:///android_asset/www/index.html");
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ public class menus extends CordovaActivity {
|
|||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
// need the title to be shown (config.xml) for the options menu to be visible
|
// need the title to be shown (config.xml) for the options menu to be visible
|
||||||
super.init();
|
super.init();
|
||||||
super.registerForContextMenu(super.appView);
|
super.registerForContextMenu(super.appView.getView());
|
||||||
super.loadUrl("file:///android_asset/www/menus/index.html");
|
super.loadUrl("file:///android_asset/www/menus/index.html");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user