mirror of
https://github.com/apache/cordova-android.git
synced 2025-03-04 00:13:20 +08:00
Removing the deprecated setAttribute methods to clean up the codebase
This commit is contained in:
parent
e6adbb0e42
commit
25c8b2fabb
@ -605,66 +605,6 @@ public class CordovaActivity extends Activity implements CordovaInterface {
|
|||||||
return p.doubleValue();
|
return p.doubleValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 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);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
/**
|
/**
|
||||||
* Called when the system is about to start resuming a previous activity.
|
* Called when the system is about to start resuming a previous activity.
|
||||||
|
Loading…
Reference in New Issue
Block a user