Make unit tests compile on 4.0.x (couple APIs changed)

This commit is contained in:
Andrew Grieve 2015-01-20 15:03:46 -05:00
parent c352b296da
commit 076e93184b
2 changed files with 2 additions and 2 deletions

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

View File

@ -30,6 +30,6 @@ public class splashscreen extends CordovaActivity {
// Show splashscreen
preferences.set("splashscreen", "sandy");
super.loadUrl("file:///android_asset/www/splashscreen/index.html", 2000);
super.loadUrl("file:///android_asset/www/splashscreen/index.html");
}
}