diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2020-09-24 16:09:24 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-09-24 16:09:24 +0000 |
commit | af9da2cbe2c205da790a05cb9350af58d71a2219 (patch) | |
tree | b82bb636a0ff21eda535c42e98cdbb6616ca01c6 | |
parent | 7d7e35c61fd2665a5473e2bd23d63021a1148d2e (diff) | |
parent | 801e4e9db30a337e3c38715df736868af44aa78b (diff) |
Merge "[WifiTrackerLib] Reset default route booleans in BaseWifiTracker#onStart" into rvc-qpr-dev
-rw-r--r-- | libs/WifiTrackerLib/src/com/android/wifitrackerlib/BaseWifiTracker.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/WifiTrackerLib/src/com/android/wifitrackerlib/BaseWifiTracker.java b/libs/WifiTrackerLib/src/com/android/wifitrackerlib/BaseWifiTracker.java index 28b1a4907..8eaef6e5a 100644 --- a/libs/WifiTrackerLib/src/com/android/wifitrackerlib/BaseWifiTracker.java +++ b/libs/WifiTrackerLib/src/com/android/wifitrackerlib/BaseWifiTracker.java @@ -273,6 +273,9 @@ public class BaseWifiTracker implements LifecycleObserver { if (defaultNetworkCapabilities != null) { mIsWifiDefaultRoute = defaultNetworkCapabilities.hasTransport(TRANSPORT_WIFI); mIsCellDefaultRoute = defaultNetworkCapabilities.hasTransport(TRANSPORT_CELLULAR); + } else { + mIsWifiDefaultRoute = false; + mIsCellDefaultRoute = false; } if (isVerboseLoggingEnabled()) { Log.v(mTag, "Wifi is the default route: " + mIsWifiDefaultRoute); |