summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2020-09-24 23:07:18 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2020-09-24 23:07:18 +0000
commite3ad2d0345da17361f584b15e6e4d70161cb18be (patch)
treeb82bb636a0ff21eda535c42e98cdbb6616ca01c6
parent91436e6502da89f7fe80a587a1e8f8f587bae2d2 (diff)
parentaf9da2cbe2c205da790a05cb9350af58d71a2219 (diff)
Snap for 6862191 from af9da2cbe2c205da790a05cb9350af58d71a2219 to rvc-qpr1-release
Change-Id: I70de51f891ff0ffa9414f39608b467b075d82e70
-rw-r--r--libs/WifiTrackerLib/src/com/android/wifitrackerlib/BaseWifiTracker.java3
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);