Loading packages/SettingsLib/src/com/android/settingslib/wifi/AccessPoint.java +8 −3 Original line number Diff line number Diff line Loading @@ -511,8 +511,11 @@ public class AccessPoint implements Comparable<AccessPoint> { } } // Only replace the previous value if we have a recent scan result to use if (seen != 0) { mSeen = seen; } } /** * Returns if the network is marked metered. Metering can be marked through its config in Loading Loading @@ -940,8 +943,10 @@ public class AccessPoint implements Comparable<AccessPoint> { security = getSecurity(result); if (security == SECURITY_PSK) pskType = getPskType(result); mRssi = result.level; mSeen = result.timestamp; mScanResultCache.put(result.BSSID, result); updateRssi(); mSeen = result.timestamp; // even if the timestamp is old it is still valid } public void saveWifiState(Bundle savedState) { Loading Loading
packages/SettingsLib/src/com/android/settingslib/wifi/AccessPoint.java +8 −3 Original line number Diff line number Diff line Loading @@ -511,8 +511,11 @@ public class AccessPoint implements Comparable<AccessPoint> { } } // Only replace the previous value if we have a recent scan result to use if (seen != 0) { mSeen = seen; } } /** * Returns if the network is marked metered. Metering can be marked through its config in Loading Loading @@ -940,8 +943,10 @@ public class AccessPoint implements Comparable<AccessPoint> { security = getSecurity(result); if (security == SECURITY_PSK) pskType = getPskType(result); mRssi = result.level; mSeen = result.timestamp; mScanResultCache.put(result.BSSID, result); updateRssi(); mSeen = result.timestamp; // even if the timestamp is old it is still valid } public void saveWifiState(Bundle savedState) { Loading