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

Commit 0db76ad6 authored by Etan Cohen's avatar Etan Cohen Committed by android-build-merger
Browse files

[NAN] Add method to ConfigRequest to determine if non-default

am: 8266b3f8

Change-Id: I37c81386ef115524a2c7264a0821ce4e0ad19b9c
parents 0153a745 8266b3f8
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -173,6 +173,18 @@ public class ConfigRequest implements Parcelable {
                && mClusterLow == lhs.mClusterLow && mClusterHigh == lhs.mClusterHigh;
    }

    /**
     * Checks whether the configuration's settings which impact on-air behavior are non-default.
     *
     * @return true if any of the on-air-impacting settings are non-default.
     *
     * @hide
     */
    public boolean isNonDefaultOnTheAir() {
        return mSupport5gBand || mMasterPreference != 0 || mClusterLow != CLUSTER_ID_MIN
                || mClusterHigh != CLUSTER_ID_MAX;
    }

    @Override
    public int hashCode() {
        int result = 17;