Add encryption option to PPTP UI.

Also add new error dialogs for L2TP challenge error and remote server
hanging up error.
This commit is contained in:
Hung-ying Tyan
2009-07-30 19:54:13 +08:00
parent 79748b42e3
commit 7be218e7f7
4 changed files with 125 additions and 9 deletions

View File

@@ -24,6 +24,7 @@ import android.content.Intent;
import android.net.vpn.L2tpIpsecProfile;
import android.net.vpn.L2tpIpsecPskProfile;
import android.net.vpn.L2tpProfile;
import android.net.vpn.PptpProfile;
import android.net.vpn.VpnProfile;
import android.net.vpn.VpnType;
import android.os.Bundle;
@@ -162,6 +163,9 @@ public class VpnEditor extends PreferenceActivity {
case L2TP:
return new L2tpEditor((L2tpProfile) p);
case PPTP:
return new PptpEditor((PptpProfile) p);
default:
return new VpnProfileEditor(p);
}