undo the splash screen for now

This commit is contained in:
Dave Johnson 2010-08-17 11:26:39 -07:00
parent 8ca1804de9
commit 56f0e8e087
2 changed files with 6 additions and 3 deletions

View File

@ -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) {

View File

@ -106,10 +106,12 @@ 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,6 +135,7 @@ 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);