diff options
author | Robert Greenwalt <rgreenwalt@google.com> | 2011-04-25 12:36:56 -0700 |
---|---|---|
committer | Robert Greenwalt <rgreenwalt@google.com> | 2011-04-25 16:04:45 -0700 |
commit | af2eb4f6db2b54a144ecd0a87a0321933ffabc2c (patch) | |
tree | f0c21591637fc78c6faf3c7e2c40ceb1e2050233 /core/java | |
parent | 41f665a5f9d4e73ba8dabceb721c9c8873591bac (diff) | |
download | frameworks_base-af2eb4f6db2b54a144ecd0a87a0321933ffabc2c.zip frameworks_base-af2eb4f6db2b54a144ecd0a87a0321933ffabc2c.tar.gz frameworks_base-af2eb4f6db2b54a144ecd0a87a0321933ffabc2c.tar.bz2 |
Make new networkAttribute parameter non-optional.
Dependencymet sets the default dep-met value for the network. Should
be set to true unless you know what you're doing.
Change-Id: Ifa3765a97615f5333da07bce9defdb8600275129
Diffstat (limited to 'core/java')
-rw-r--r-- | core/java/android/net/NetworkConfig.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/core/java/android/net/NetworkConfig.java b/core/java/android/net/NetworkConfig.java index 4adb76b..6e774a6 100644 --- a/core/java/android/net/NetworkConfig.java +++ b/core/java/android/net/NetworkConfig.java @@ -60,11 +60,7 @@ public class NetworkConfig { type = Integer.parseInt(fragments[1]); radio = Integer.parseInt(fragments[2]); priority = Integer.parseInt(fragments[3]); - if (fragments.length > 4) { - dependencyMet = Boolean.parseBoolean(fragments[4]); - } else { - dependencyMet = true; - } + dependencyMet = Boolean.parseBoolean(fragments[4]); } /** |