mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-20 23:56:20 +08:00
Make unit tests compile on 4.0.x (couple APIs changed)
This commit is contained in:
parent
c352b296da
commit
076e93184b
@ -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");
|
||||
}
|
||||
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user