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

Commit 20b61d1f authored by Nalla Kartheek's avatar Nalla Kartheek Committed by Steve Kondik
Browse files

Introduce a flag to signify the presence of saved profile in scan results

This flag shall signify that the saved profile is seen in the scan results
and based on this such entries are displayed as found, without which, the
scan results ended up showing these saved profiles forever, though the
profile is not scanned.

Change-Id: I0c953b5e86a547bd108cf0a8b553e62b2c31fa4e
CRs-Fixed: 940917
parent 3db159db
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -124,6 +124,8 @@ public class AccessPoint implements Comparable<AccessPoint> {

    private Object mTag;

    public boolean foundInScanResult = false;

    public AccessPoint(Context context, Bundle savedState) {
        mContext = context;
        mConfig = savedState.getParcelable(KEY_CONFIG);
+3 −1
Original line number Diff line number Diff line
@@ -319,7 +319,8 @@ public class WifiTracker {
                if (config.selfAdded && config.numAssociation == 0) {
                    continue;
                }
                AccessPoint accessPoint = new AccessPoint(mContext, config);
                AccessPoint accessPoint = getCachedOrCreate(config, cachedAccessPoints);
                accessPoint.foundInScanResult = false;
                if (mLastInfo != null && mLastNetworkInfo != null) {
                    if (config.isPasspoint() == false) {
                        accessPoint.update(connectionConfig, mLastInfo, mLastNetworkInfo);
@@ -352,6 +353,7 @@ public class WifiTracker {
                boolean found = false;
                for (AccessPoint accessPoint : apMap.getAll(result.SSID)) {
                    if (accessPoint.update(result)) {
                        accessPoint.foundInScanResult = true;
                        found = true;
                        break;
                    }