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

Commit 990c3ad5 authored by Irfan Sheriff's avatar Irfan Sheriff
Browse files

Fix enabling of submit button

Change I478c915b introduced a regression where the submit
button is enabled even if no password is entered for a secure
network.

This happened because our checks would override a password
check when IP and proxy settings are valid (which is the default
setting)

Bug: 4462439
Change-Id: Icd3fde90759f33fa391ec79ae8075b6d8388d2e9
parent d779e5df
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -271,14 +271,12 @@ public class WifiConfigController implements TextWatcher,
            (mAccessPointSecurity == AccessPoint.SECURITY_PSK && mPasswordView.length() < 8)))) {
            enabled = false;
        } else {
            enabled = true;
        }

            if (ipAndProxyFieldsAreValid()) {
                enabled = true;
            } else {
                enabled = false;
            }
        }
        submit.setEnabled(enabled);
    }