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

Commit 4770d017 authored by Chiachang Wang's avatar Chiachang Wang Committed by Automerger Merge Worker
Browse files

Merge "Populate ipsecSecret field in VpnProfile" am: 4c533480

parents 5d93cea1 4c533480
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -653,10 +653,14 @@ class ConfigDialog extends AlertDialog implements TextWatcher,
                profile.ipsecSecret = mIpsecSecret.getText().toString();
                break;

            case VpnProfile.TYPE_IKEV2_IPSEC_RSA:
                if (mIpsecUserCert.getSelectedItemPosition() != 0) {
                    profile.ipsecSecret = (String) mIpsecUserCert.getSelectedItem();
                }
                // fall through
            case VpnProfile.TYPE_L2TP_IPSEC_RSA:
                profile.l2tpSecret = mL2tpSecret.getText().toString();
                // fall through
            case VpnProfile.TYPE_IKEV2_IPSEC_RSA: // fall through
            case VpnProfile.TYPE_IPSEC_XAUTH_RSA:
                if (mIpsecUserCert.getSelectedItemPosition() != 0) {
                    profile.ipsecUserCert = (String) mIpsecUserCert.getSelectedItem();