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

Commit 919bda95 authored by Quang Luong's avatar Quang Luong Committed by android-build-merger
Browse files

Merge "Added AccessPoint.matches(AccessPoint) method to match AP objects" into...

Merge "Added AccessPoint.matches(AccessPoint) method to match AP objects" into qt-dev am: b3730b86
am: 16ccf8a3

Change-Id: I5c96301d9a3a3079713624a550ac728b7c65ef4a
parents bd1e8596 16ccf8a3
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -337,6 +337,7 @@ public class AccessPoint implements Comparable<AccessPoint> {
        mContext = context;
        networkId = config.networkId;
        mConfig = config;
        mFqdn = config.FQDN;
        setScanResultsPasspoint(homeScans, roamingScans);
        updateKey();
    }
@@ -673,6 +674,13 @@ public class AccessPoint implements Comparable<AccessPoint> {
        return mKey;
    }

    /**
     * Determines if the other AccessPoint represents the same network as this AccessPoint
     */
    public boolean matches(AccessPoint other) {
        return getKey().equals(other.getKey());
    }

    public boolean matches(WifiConfiguration config) {
        if (config.isPasspoint()) {
            return (isPasspoint() && config.FQDN.equals(mConfig.FQDN));