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

Commit 2c7bf2cb authored by Robert Greenwalt's avatar Robert Greenwalt
Browse files

Clean up and add some Network logging.

Dumps the netid for the Network and adds that to the NetworkAgentInfo.

Change-Id: Id9fbcc55ca55bf1a020f747f0c44902efb1b5f87
parent 51fa6bcb
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -190,13 +190,20 @@ public class Network implements Parcelable {
            }
    };

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof Network == false) return false;
        Network other = (Network)obj;
        return this.netId == other.netId;
    }

    @Override
    public int hashCode() {
        return netId * 11;
    }

    @Override
    public String toString() {
        return Integer.toString(netId);
    }
}
+1 −1
Original line number Diff line number Diff line
@@ -78,6 +78,6 @@ public class NetworkAgentInfo {

    public String name() {
        return "NetworkAgentInfo [" + networkInfo.getTypeName() + " (" +
                networkInfo.getSubtypeName() + ")]";
                networkInfo.getSubtypeName() + ") - " + network.toString() + "]";
    }
}