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

Commit 07127d83 authored by Robin Lee's avatar Robin Lee
Browse files

Don't show always-on option connecting PPTP vpn

Support for this kind has been taken out so it shouldn't be an option
when connecting (it's already not an option when editing).

Bug: 28807474
Change-Id: Id3e7be390c6813d091e7f897ac82aaf29042beb8
(cherry picked from commit ca75deb7)
parent ebed4797
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -316,12 +316,12 @@ class ConfigDialog extends AlertDialog implements TextWatcher,
    }

    private boolean validate(boolean editing) {
        if (!editing) {
            return mUsername.getText().length() != 0 && mPassword.getText().length() != 0;
        }
        if (mAlwaysOnVpn.isChecked() && !getProfile().isValidLockdownProfile()) {
            return false;
        }
        if (!editing) {
            return mUsername.getText().length() != 0 && mPassword.getText().length() != 0;
        }
        if (mName.getText().length() == 0 || mServer.getText().length() == 0 ||
                !validateAddresses(mDnsServers.getText().toString(), false) ||
                !validateAddresses(mRoutes.getText().toString(), true)) {