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

Commit 0e221880 authored by Irfan Sheriff's avatar Irfan Sheriff Committed by Irfan Sheriff
Browse files

Fix EAP field display for a new network

We now hide certain EAP fields based on the type chosen. For a
new network, we should set a default and handle this the same
way

Change-Id: I9c8605694ba51bc588a49f711dcf31517ea3f6e4
parent ce689126
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -612,6 +612,11 @@ public class WifiConfigController implements TextWatcher,
                setSelection(mEapUserCertSpinner, config.enterpriseConfig.getClientCertificate());
                mEapIdentityView.setText(config.enterpriseConfig.getIdentity());
                mEapAnonymousView.setText(config.enterpriseConfig.getAnonymousIdentity());
            } else {
                // Choose a default for a new network and show only appropriate
                // fields
                mEapMethodSpinner.setSelection(Eap.PEAP);
                showEapFieldsByMethod(Eap.PEAP);
            }
        } else {
            showEapFieldsByMethod(mEapMethodSpinner.getSelectedItemPosition());