diff options
Diffstat (limited to 'libs')
-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); |