am 4598d149: Merge change 9145 into donut
Merge commit '4598d149fb9c081877a214d74efadcb60d2acbb9' * commit '4598d149fb9c081877a214d74efadcb60d2acbb9': Add the encryption option to PptpProfile parcel.
This commit is contained in:
committed by
Android Git Automerger
commit
04bdf2ce14
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user