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

Commit c6b16462 authored by Nate Jiang's avatar Nate Jiang
Browse files

Keep most recently connection network flag

Bug: 150799593
Test: atest com.net.android.wifi
Change-Id: I83fe6913b32459a90bf4ebb08b6f24cd01c4d01b
parent 146db0e4
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2356,6 +2356,8 @@ public class WifiConfiguration implements Parcelable {
        sbuf.append(" lcuid=" + lastConnectUid);
        sbuf.append(" allowAutojoin=" + allowAutojoin);
        sbuf.append(" noInternetAccessExpected=" + noInternetAccessExpected);
        sbuf.append(" mostRecentlyConnected=" + isMostRecentlyConnected);

        sbuf.append(" ");

        if (this.lastConnected != 0) {
@@ -2964,4 +2966,11 @@ public class WifiConfiguration implements Parcelable {
        return mPasspointUniqueId;
    }

    /**
     * If network is one of the most recently connected.
     * For framework internal use only. Do not parcel.
     * @hide
     */
    public boolean isMostRecentlyConnected = false;

}