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

Commit 3d067c43 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 9145 into donut

* changes:
  Add the encryption option to PptpProfile parcel.
parents 61b773f3 907a880f
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@

package android.net.vpn;

import android.os.Parcel;

/**
 * The profile for PPTP type of VPN.
 * {@hide}
@@ -39,4 +41,16 @@ public class PptpProfile extends VpnProfile {
    public boolean isEncryptionEnabled() {
        return mEncryption;
    }

    @Override
    protected void readFromParcel(Parcel in) {
        super.readFromParcel(in);
        mEncryption = in.readInt() > 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int flags) {
        super.writeToParcel(parcel, flags);
        parcel.writeInt(mEncryption ? 1 : 0);
    }
}