Adding setIntegerProperty, setBooleanProperty and setStringProperty back, due 
to possible demand, and due to the fact that I don't want to rewrite my tests


Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/3571307d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/3571307d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/3571307d

Branch: refs/heads/pluggable_webview
Commit: 3571307df5d62b2da75fdad66c458cb27df85b08
Parents: bfd8bf9
Author: Joe Bowser <[email protected]>
Authored: Wed Apr 30 11:33:26 2014 -0700
Committer: Joe Bowser <[email protected]>
Committed: Wed Apr 30 11:33:26 2014 -0700

----------------------------------------------------------------------
 .../src/org/apache/cordova/CordovaActivity.java | 62 ++++++++++++++++++++
 1 file changed, 62 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/3571307d/framework/src/org/apache/cordova/CordovaActivity.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/CordovaActivity.java 
b/framework/src/org/apache/cordova/CordovaActivity.java
index a161bf8..1715fde 100755
--- a/framework/src/org/apache/cordova/CordovaActivity.java
+++ b/framework/src/org/apache/cordova/CordovaActivity.java
@@ -1064,4 +1064,66 @@ public class CordovaActivity extends Activity implements 
CordovaInterface {
             outState.putString("callbackClass", cClass);
         }
     }
+    
+
+    /**
+     * Set boolean property on activity.
+     * This method has been deprecated in 3.0 and will be removed at a future
+     * time. Please use config.xml instead.
+     *
+     * @param name
+     * @param value
+     * @deprecated
+     */
+    @Deprecated
+    public void setBooleanProperty(String name, boolean value) {
+        Log.d(TAG, "Setting boolean properties in CordovaActivity will be 
deprecated in 3.0 on July 2013, please use config.xml");
+        this.getIntent().putExtra(name.toLowerCase(), value);
+    }
+
+    /**
+     * Set int property on activity.
+     * This method has been deprecated in 3.0 and will be removed at a future
+     * time. Please use config.xml instead.
+     *
+     * @param name
+     * @param value
+     * @deprecated
+     */
+    @Deprecated
+    public void setIntegerProperty(String name, int value) {
+        Log.d(TAG, "Setting integer properties in CordovaActivity will be 
deprecated in 3.0 on July 2013, please use config.xml");
+        this.getIntent().putExtra(name.toLowerCase(), value);
+    }
+
+    /**
+     * Set string property on activity.
+     * This method has been deprecated in 3.0 and will be removed at a future
+     * time. Please use config.xml instead.
+     *
+     * @param name
+     * @param value
+     * @deprecated
+     */
+    @Deprecated
+    public void setStringProperty(String name, String value) {
+        Log.d(TAG, "Setting string properties in CordovaActivity will be 
deprecated in 3.0 on July 2013, please use config.xml");
+        this.getIntent().putExtra(name.toLowerCase(), value);
+    }
+
+    /**
+     * Set double property on activity.
+     * This method has been deprecated in 3.0 and will be removed at a future
+     * time. Please use config.xml instead.
+     *
+     * @param name
+     * @param value
+     * @deprecated
+     */
+    @Deprecated
+    public void setDoubleProperty(String name, double value) {
+        Log.d(TAG, "Setting double properties in CordovaActivity will be 
deprecated in 3.0 on July 2013, please use config.xml");
+        this.getIntent().putExtra(name.toLowerCase(), value);
+    }
+
 }

Reply via email to