From 336a58ca5a1bb307eaa574737698419bb1259029 Mon Sep 17 00:00:00 2001 From: Bryce Curtis Date: Wed, 28 Sep 2011 10:03:05 -0500 Subject: [PATCH] Clean up code and consolidate bindBrowser with init. --- framework/src/com/phonegap/DroidGap.java | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/framework/src/com/phonegap/DroidGap.java b/framework/src/com/phonegap/DroidGap.java index 3d063a7d..11403aca 100755 --- a/framework/src/com/phonegap/DroidGap.java +++ b/framework/src/com/phonegap/DroidGap.java @@ -263,8 +263,9 @@ public class DroidGap extends PhonegapActivity { // Enable built-in geolocation WebViewReflect.setGeolocationEnabled(settings, true); - // Bind PhoneGap objects to JavaScript - this.bindBrowser(this.appView); + // Create callback server and plugin manager + this.callbackServer = new CallbackServer(); + this.pluginManager = new PluginManager(this.appView, this); // Add web view but make it invisible while loading URL this.appView.setVisibility(View.INVISIBLE); @@ -287,17 +288,6 @@ public class DroidGap extends PhonegapActivity { appView.setWebViewClient(client); } - /** - * Bind PhoneGap objects to JavaScript. - * - * @param appView - */ - private void bindBrowser(WebView appView) { - this.callbackServer = new CallbackServer(); - this.pluginManager = new PluginManager(appView, this); - - } - /** * Look at activity parameters and process them. * This must be called from the main UI thread.