diff options
author | Robert Greenwalt <rgreenwalt@google.com> | 2014-09-13 12:04:12 -0700 |
---|---|---|
committer | Robert Greenwalt <rgreenwalt@google.com> | 2014-09-14 07:43:10 -0700 |
commit | 49f63fbed4cd84f5da182c85e8b999037dc64f3b (patch) | |
tree | 409917f5f37be21a02e3690c8a77778f84144c6c /services/core/java/com/android/server/connectivity/NetworkMonitor.java | |
parent | c0b8cb89105e814f2dc710c4b6f932ff726f0134 (diff) | |
download | frameworks_base-49f63fbed4cd84f5da182c85e8b999037dc64f3b.zip frameworks_base-49f63fbed4cd84f5da182c85e8b999037dc64f3b.tar.gz frameworks_base-49f63fbed4cd84f5da182c85e8b999037dc64f3b.tar.bz2 |
Report Network status to NetworkAgent.
Currently just valid/invalid based on NetworkMonitor findings.
Changed NetworkMonitor to start out in default state since starting in Offline causes
a spurious invalid report at creation time.
Added some logging.
bug:17395269
Change-Id: I9ae650b561834d8f8979033744d97df852e76df9
Diffstat (limited to 'services/core/java/com/android/server/connectivity/NetworkMonitor.java')
-rw-r--r-- | services/core/java/com/android/server/connectivity/NetworkMonitor.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/connectivity/NetworkMonitor.java b/services/core/java/com/android/server/connectivity/NetworkMonitor.java index 9e33205..fab064c 100644 --- a/services/core/java/com/android/server/connectivity/NetworkMonitor.java +++ b/services/core/java/com/android/server/connectivity/NetworkMonitor.java @@ -260,7 +260,7 @@ public class NetworkMonitor extends StateMachine { addState(mUserPromptedState, mDefaultState); addState(mCaptivePortalState, mDefaultState); addState(mLingeringState, mDefaultState); - setInitialState(mOfflineState); + setInitialState(mDefaultState); mServer = Settings.Global.getString(mContext.getContentResolver(), Settings.Global.CAPTIVE_PORTAL_SERVER); |