From dfb89df4f16104961f6493dfa815909cdfaf51bd Mon Sep 17 00:00:00 2001 From: Ian Clelland Date: Fri, 31 May 2013 10:38:57 -0400 Subject: [PATCH] [CB-3561] Update documentation comments to match implementation Affects CordovaInterface and CordovaActivity. There should probably be a concerted effort to update this across the entire project. --- framework/src/org/apache/cordova/CordovaActivity.java | 6 +----- framework/src/org/apache/cordova/api/CordovaInterface.java | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/framework/src/org/apache/cordova/CordovaActivity.java b/framework/src/org/apache/cordova/CordovaActivity.java index 4042b6be..b165815c 100755 --- a/framework/src/org/apache/cordova/CordovaActivity.java +++ b/framework/src/org/apache/cordova/CordovaActivity.java @@ -64,11 +64,10 @@ import android.widget.LinearLayout; * As an example: * * package org.apache.cordova.examples; - * import android.app.Activity; * import android.os.Bundle; * import org.apache.cordova.*; * - * public class Examples extends DroidGap { + * public class Example extends CordovaActivity { * @Override * public void onCreate(Bundle savedInstanceState) { * super.onCreate(savedInstanceState); @@ -77,9 +76,6 @@ import android.widget.LinearLayout; * super.setStringProperty("loadingDialog", "Title,Message"); // show loading dialog * super.setStringProperty("errorUrl", "file:///android_asset/www/error.html"); // if error loading file in super.loadUrl(). * - * // Initialize activity - * super.init(); - * * // Clear cache if you want * super.appView.clearCache(true); * diff --git a/framework/src/org/apache/cordova/api/CordovaInterface.java b/framework/src/org/apache/cordova/api/CordovaInterface.java index aaa5885a..8ef8ed01 100755 --- a/framework/src/org/apache/cordova/api/CordovaInterface.java +++ b/framework/src/org/apache/cordova/api/CordovaInterface.java @@ -24,7 +24,7 @@ import android.content.Intent; import java.util.concurrent.ExecutorService; /** - * The Cordova activity abstract class that is extended by DroidGap. + * The Activity interface that is implemented by CordovaActivity. * It is used to isolate plugin development, and remove dependency on entire Cordova library. */ public interface CordovaInterface {