Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0dbd029b authored by Nalla Kartheek's avatar Nalla Kartheek Committed by Steve Kondik
Browse files

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
parent 403f50c7
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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();