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

Commit 30e812b7 authored by Sanket Padawe's avatar Sanket Padawe Committed by Samuel Tan
Browse files

[DO NOT MERGE] Disable configuring EAP-TLS/TTLS/PEAP without CA certificates.

Bug: 15162357
Change-Id: I9b1be9837b104670adc1cc7ed47a5095ff38d335
parent 55d7fcbf
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -369,6 +369,11 @@ public class WifiConfigController implements TextWatcher,
                enabled = false;
            }
        }
        if (mEapCaCertSpinner != null &&
                mView.findViewById(R.id.l_ca_cert).getVisibility() != View.GONE &&
                ((String)mEapCaCertSpinner.getSelectedItem()).equals(unspecifiedCert)) {
            enabled = false;
        }
        submit.setEnabled(enabled);
    }

@@ -673,6 +678,7 @@ public class WifiConfigController implements TextWatcher,
            }
            mPhase2Spinner = (Spinner) mView.findViewById(R.id.phase2);
            mEapCaCertSpinner = (Spinner) mView.findViewById(R.id.ca_cert);
            mEapCaCertSpinner.setOnItemSelectedListener(this);
            mEapUserCertSpinner = (Spinner) mView.findViewById(R.id.user_cert);
            mEapIdentityView = (TextView) mView.findViewById(R.id.identity);
            mEapAnonymousView = (TextView) mView.findViewById(R.id.anonymous);