mirror of
https://github.com/apache/cordova-android.git
synced 2025-04-23 01:06:23 +08:00
undo the splash screen for now
This commit is contained in:
parent
8ca1804de9
commit
56f0e8e087
@ -227,7 +227,7 @@ PhoneGap.callbacks = {};
|
|||||||
* @param {String[]} [args] Zero or more arguments to pass to the method
|
* @param {String[]} [args] Zero or more arguments to pass to the method
|
||||||
*/
|
*/
|
||||||
PhoneGap.exec = function(clazz, action, args) {
|
PhoneGap.exec = function(clazz, action, args) {
|
||||||
CommandManager.exec(clazz, action, callbackId, JSON.stringify(args), false);
|
return CommandManager.exec(clazz, action, callbackId, JSON.stringify(args), false);
|
||||||
};
|
};
|
||||||
|
|
||||||
PhoneGap.execAsync = function(success, fail, clazz, action, args) {
|
PhoneGap.execAsync = function(success, fail, clazz, action, args) {
|
||||||
|
@ -106,9 +106,11 @@ public class DroidGap extends Activity {
|
|||||||
1.0F));
|
1.0F));
|
||||||
splashScreen.setImageResource(R.drawable.splash);
|
splashScreen.setImageResource(R.drawable.splash);
|
||||||
|
|
||||||
root.addView(splashScreen);
|
// root.addView(splashScreen);
|
||||||
|
|
||||||
initWebView();
|
initWebView();
|
||||||
|
|
||||||
|
root.addView(appView);
|
||||||
|
|
||||||
setContentView(root);
|
setContentView(root);
|
||||||
}
|
}
|
||||||
@ -133,7 +135,8 @@ public class DroidGap extends Activity {
|
|||||||
|
|
||||||
appView.setInitialScale(100);
|
appView.setInitialScale(100);
|
||||||
appView.setVerticalScrollBarEnabled(false);
|
appView.setVerticalScrollBarEnabled(false);
|
||||||
|
appView.requestFocusFromTouch();
|
||||||
|
|
||||||
WebSettings settings = appView.getSettings();
|
WebSettings settings = appView.getSettings();
|
||||||
settings.setJavaScriptEnabled(true);
|
settings.setJavaScriptEnabled(true);
|
||||||
settings.setJavaScriptCanOpenWindowsAutomatically(true);
|
settings.setJavaScriptCanOpenWindowsAutomatically(true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user