Undeprecate funcs until we're ready for api-review
Fixing javadoc deprecated tags to fix a checkbuild error breaks the current/api.txt. We're not ready for the api change yet, so back out the comments. Change-Id: Ia95e394da7329c1b9e3876e589c3c2137ba18048
This commit is contained in:
@@ -547,12 +547,13 @@ public class ConnectivityManager {
|
|||||||
* @param preference the network type to prefer over all others. It is
|
* @param preference the network type to prefer over all others. It is
|
||||||
* unspecified what happens to the old preferred network in the
|
* unspecified what happens to the old preferred network in the
|
||||||
* overall ordering.
|
* overall ordering.
|
||||||
* @deprecated Functionality has been removed as it no longer makes sense,
|
|
||||||
* with many more than two networks - we'd need an array to express
|
|
||||||
* preference. Instead we use dynamic network properties of
|
|
||||||
* the networks to describe their precedence.
|
|
||||||
*/
|
*/
|
||||||
public void setNetworkPreference(int preference) {
|
public void setNetworkPreference(int preference) {
|
||||||
|
// TODO - deprecate with:
|
||||||
|
// @deprecated Functionality has been removed as it no longer makes sense,
|
||||||
|
// with many more than two networks - we'd need an array to express
|
||||||
|
// preference. Instead we use dynamic network properties of
|
||||||
|
// the networks to describe their precedence.
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -562,12 +563,13 @@ public class ConnectivityManager {
|
|||||||
*
|
*
|
||||||
* <p>This method requires the caller to hold the permission
|
* <p>This method requires the caller to hold the permission
|
||||||
* {@link android.Manifest.permission#ACCESS_NETWORK_STATE}.
|
* {@link android.Manifest.permission#ACCESS_NETWORK_STATE}.
|
||||||
* @deprecated Functionality has been removed as it no longer makes sense,
|
|
||||||
* with many more than two networks - we'd need an array to express
|
|
||||||
* preference. Instead we use dynamic network properties of
|
|
||||||
* the networks to describe their precedence.
|
|
||||||
*/
|
*/
|
||||||
public int getNetworkPreference() {
|
public int getNetworkPreference() {
|
||||||
|
// TODO - deprecate with:
|
||||||
|
// @deprecated Functionality has been removed as it no longer makes sense,
|
||||||
|
// with many more than two networks - we'd need an array to express
|
||||||
|
// preference. Instead we use dynamic network properties of
|
||||||
|
// the networks to describe their precedence.
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user