diff options
author | Robert Greenwalt <rgreenwalt@google.com> | 2014-08-13 13:43:32 -0700 |
---|---|---|
committer | Robert Greenwalt <rgreenwalt@google.com> | 2014-08-13 13:43:32 -0700 |
commit | fb68f8fbe0213841f393f8bdb5313e4e44f4f116 (patch) | |
tree | d4f30ea57fd1cd5f1755c8b59c5c5e9e2a3749ae /services/core/java/com/android/server/connectivity/NetworkMonitor.java | |
parent | 8e083ec0444e52cb203228bcf1c1cd34bcc4e70d (diff) | |
download | frameworks_base-fb68f8fbe0213841f393f8bdb5313e4e44f4f116.zip frameworks_base-fb68f8fbe0213841f393f8bdb5313e4e44f4f116.tar.gz frameworks_base-fb68f8fbe0213841f393f8bdb5313e4e44f4f116.tar.bz2 |
Don't send NetworkMonitor bcast until systemReady
bug:16913951
Change-Id: I26c5c3353c2d8821452f81765875958d5b9d385b
Diffstat (limited to 'services/core/java/com/android/server/connectivity/NetworkMonitor.java')
-rw-r--r-- | services/core/java/com/android/server/connectivity/NetworkMonitor.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/connectivity/NetworkMonitor.java b/services/core/java/com/android/server/connectivity/NetworkMonitor.java index ae5eda3..5057994 100644 --- a/services/core/java/com/android/server/connectivity/NetworkMonitor.java +++ b/services/core/java/com/android/server/connectivity/NetworkMonitor.java @@ -217,6 +217,8 @@ public class NetworkMonitor extends StateMachine { private String mServer; private boolean mIsCaptivePortalCheckEnabled = false; + public boolean systemReady = false; + private State mDefaultState = new DefaultState(); private State mOfflineState = new OfflineState(); private State mValidatedState = new ValidatedState(); @@ -709,6 +711,8 @@ public class NetworkMonitor extends StateMachine { return; } + if (systemReady == false) return; + Intent latencyBroadcast = new Intent(ACTION_NETWORK_CONDITIONS_MEASURED); switch (mNetworkAgentInfo.networkInfo.getType()) { case ConnectivityManager.TYPE_WIFI: |