From 907a880fa24500aa4e3476f99cfabf4343236435 Mon Sep 17 00:00:00 2001 From: Hung-ying Tyan Date: Thu, 30 Jul 2009 20:36:27 +0800 Subject: Add the encryption option to PptpProfile parcel. --- vpn/java/android/net/vpn/PptpProfile.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'vpn') diff --git a/vpn/java/android/net/vpn/PptpProfile.java b/vpn/java/android/net/vpn/PptpProfile.java index cdc90f0..b4b7be5 100644 --- a/vpn/java/android/net/vpn/PptpProfile.java +++ b/vpn/java/android/net/vpn/PptpProfile.java @@ -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); + } } -- cgit v1.1