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

Commit 5afebca5 authored by Chalard Jean's avatar Chalard Jean
Browse files

Add doc for NetworkScore#getLegacyInt

Test: comment-only change
Fixes: 184786246
Change-Id: I8306f01f3d247986683e272074047e3ad190f68e
parent 3a33ad66
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -93,6 +93,10 @@ public final class NetworkScore implements Parcelable {
        mKeepConnectedReason = in.readInt();
    }

    /**
     * Get the legacy int score embedded in this NetworkScore.
     * @see Builder#setLegacyInt(int)
     */
    public int getLegacyInt() {
        return mLegacyInt;
    }
@@ -212,7 +216,9 @@ public final class NetworkScore implements Parcelable {
        /**
         * Sets the legacy int for this score.
         *
         * Do not rely on this. It will be gone by the time S is released.
         * This will be used for measurements and logs, but will no longer be used for ranking
         * networks against each other. Callers that existed before Android S should send what
         * they used to send as the int score.
         *
         * @param score the legacy int
         * @return this