Cleanup formatting.

This commit is contained in:
Bryce Curtis 2011-09-08 15:43:08 -05:00
parent 0b6a39bc6f
commit e1b3a8cdce

View File

@ -77,9 +77,6 @@ import com.phonegap.api.PluginManager;
* // Initialize activity * // Initialize activity
* super.init(); * super.init();
* *
* // Add your plugins here or in JavaScript
* super.addService("MyService", "com.phonegap.examples.MyService");
*
* // Clear cache if you want * // Clear cache if you want
* super.appView.clearCache(true); * super.appView.clearCache(true);
* *
@ -91,7 +88,7 @@ import com.phonegap.api.PluginManager;
* *
* Properties: The application can be configured using the following properties: * Properties: The application can be configured using the following properties:
* *
* // Display a native loading dialog. Format for value = "Title,Message". * // Display a native loading dialog when loading app. Format for value = "Title,Message".
* // (String - default=null) * // (String - default=null)
* super.setStringProperty("loadingDialog", "Wait,Loading Demo..."); * super.setStringProperty("loadingDialog", "Wait,Loading Demo...");
* *
@ -688,7 +685,6 @@ public class DroidGap extends PhonegapActivity {
// Forward to plugins // Forward to plugins
this.pluginManager.onDestroy(); this.pluginManager.onDestroy();
} }
} }
@ -712,7 +708,6 @@ public class DroidGap extends PhonegapActivity {
this.callbackServer.sendJavascript(statement); this.callbackServer.sendJavascript(statement);
} }
/** /**
* Display a new browser with the specified URL. * Display a new browser with the specified URL.
* *
@ -914,13 +909,13 @@ public class DroidGap extends PhonegapActivity {
} }
// Polling for JavaScript messages // Polling for JavaScript messages
else if (reqOk && defaultValue != null && defaultValue.equals("gap_poll:")) { else if (reqOk && defaultValue != null && defaultValue.equals("gap_poll:")) {
String r = callbackServer.getJavascript(); String r = callbackServer.getJavascript();
result.confirm(r); result.confirm(r);
} }
// Calling into CallbackServer // Calling into CallbackServer
else if (reqOk && defaultValue != null && defaultValue.equals("gap_callbackServer:")) { else if (reqOk && defaultValue != null && defaultValue.equals("gap_callbackServer:")) {
String r = ""; String r = "";
if (message.equals("usePolling")) { if (message.equals("usePolling")) {
r = ""+callbackServer.usePolling(); r = ""+callbackServer.usePolling();
@ -939,7 +934,7 @@ public class DroidGap extends PhonegapActivity {
// PhoneGap JS has initialized, so show webview // PhoneGap JS has initialized, so show webview
// (This solves white flash seen when rendering HTML) // (This solves white flash seen when rendering HTML)
else if (reqOk && defaultValue != null && defaultValue.equals("gap_init:")) { else if (reqOk && defaultValue != null && defaultValue.equals("gap_init:")) {
appView.setVisibility(View.VISIBLE); appView.setVisibility(View.VISIBLE);
ctx.spinnerStop(); ctx.spinnerStop();
result.confirm("OK"); result.confirm("OK");
@ -1041,7 +1036,6 @@ public class DroidGap extends PhonegapActivity {
* @param callback * @param callback
*/ */
public void onGeolocationPermissionsShowPrompt(String origin, Callback callback) { public void onGeolocationPermissionsShowPrompt(String origin, Callback callback) {
// TODO Auto-generated method stub
super.onGeolocationPermissionsShowPrompt(origin, callback); super.onGeolocationPermissionsShowPrompt(origin, callback);
callback.invoke(origin, true, false); callback.invoke(origin, true, false);
} }