Refactor getPersistedNetworkPreference
Optimize for updating mNetworkPreference according to device's networkAttributes setting from overlay config.xml when connectivityservice start. Change-Id: I90286332d4f453038f1ddac7dd9d1265d96b4859 Signed-off-by: Jianzheng Zhou <jianzheng.zhou@freescale.com>
This commit is contained in:
parent
ff31bee14a
commit
a8aa160836
1 changed files with 28 additions and 6 deletions
|
|
@ -328,6 +328,18 @@ public class ConnectivityManager {
|
|||
/** {@hide} */
|
||||
public static final int MAX_NETWORK_TYPE = TYPE_WIFI_P2P;
|
||||
|
||||
/**
|
||||
* If you want to set the default network preference,you can directly
|
||||
* change the networkAttributes array in framework's config.xml.
|
||||
*
|
||||
* @deprecated Since we support so many more networks now, the single
|
||||
* network default network preference can't really express
|
||||
* the heirarchy. Instead, the default is defined by the
|
||||
* networkAttributes in config.xml. You can determine
|
||||
* the current value by calling {@link getNetworkPreference()}
|
||||
* from an App.
|
||||
*/
|
||||
@Deprecated
|
||||
public static final int DEFAULT_NETWORK_PREFERENCE = TYPE_WIFI;
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue