summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/wifi
diff options
context:
space:
mode:
authorNalla Kartheek <karthe@codeaurora.org>2015-11-20 13:32:41 +0530
committerSteve Kondik <steve@cyngn.com>2016-07-01 05:03:24 -0700
commit0dbd029bacc6ed4fe9c1b332ab2fe06c5c74866a (patch)
tree4988d69d43b136caa0f19f91377366a2c52d4037 /src/com/android/settings/wifi
parent403f50c7cda2d5f214600978fdd920cf2d98131b (diff)
downloadpackages_apps_Settings-0dbd029bacc6ed4fe9c1b332ab2fe06c5c74866a.zip
packages_apps_Settings-0dbd029bacc6ed4fe9c1b332ab2fe06c5c74866a.tar.gz
packages_apps_Settings-0dbd029bacc6ed4fe9c1b332ab2fe06c5c74866a.tar.bz2
Wi-Fi: Do not display the not scanned saved networks forever
A flag is introduced to signify it these saved profiles were scanned or not and this commit shall ensure that such entries are displayed only when the flag indicates to have scanned. Change-Id: I0c525a493caa39c3bed5149898160dd4662dd0c8 CRs-Fixed: 940917
Diffstat (limited to 'src/com/android/settings/wifi')
-rw-r--r--src/com/android/settings/wifi/WifiSettings.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/settings/wifi/WifiSettings.java b/src/com/android/settings/wifi/WifiSettings.java
index e83889c..5fc70e5 100644
--- a/src/com/android/settings/wifi/WifiSettings.java
+++ b/src/com/android/settings/wifi/WifiSettings.java
@@ -666,6 +666,10 @@ public class WifiSettings extends RestrictedSettingsFragment
for (AccessPoint accessPoint : accessPoints) {
// Ignore access points that are out of range.
if (accessPoint.getLevel() != -1) {
+ if (accessPoint.isSaved() && (!accessPoint.foundInScanResult)
+ && (accessPoint.getDetailedState() == null)) {
+ continue;
+ }
hasAvailableAccessPoints = true;
if (accessPoint.getTag() != null) {
final Preference pref = (Preference) accessPoint.getTag();