Merge change 9145 into donut

* changes:
  Add the encryption option to PptpProfile parcel.
This commit is contained in:
Android (Google) Code Review
2009-07-30 05:46:07 -07:00

View File

@@ -16,6 +16,8 @@
package android.net.vpn; package android.net.vpn;
import android.os.Parcel;
/** /**
* The profile for PPTP type of VPN. * The profile for PPTP type of VPN.
* {@hide} * {@hide}
@@ -39,4 +41,16 @@ public class PptpProfile extends VpnProfile {
public boolean isEncryptionEnabled() { public boolean isEncryptionEnabled() {
return mEncryption; 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);
}
} }