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

Commit 4eeb99d6 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[Wi-Fi] Show Wi-Fi editor for authentication failures" into rvc-dev

parents 6f482cef 69653f05
Loading
Loading
Loading
Loading
+3 −8
Original line number Diff line number Diff line
@@ -544,15 +544,10 @@ public class WifiSettings2 extends RestrictedSettingsFragment
            final WifiEntry selectedEntry =
                    ((LongPressWifiEntryPreference) preference).getWifiEntry();

            // If the clicked WiFi entry is never connected, launch Wi-Fi edit UI to edit password.
            if (selectedEntry.getSecurity() != WifiEntry.SECURITY_NONE
                    && selectedEntry.getSecurity() != WifiEntry.SECURITY_OWE) {
                final WifiConfiguration config = selectedEntry.getWifiConfiguration();
                if (config != null && !config.getNetworkSelectionStatus().hasEverConnected()) {
            if (selectedEntry.shouldEditBeforeConnect()) {
                launchConfigNewNetworkFragment(selectedEntry);
                return true;
            }
            }

            connect(selectedEntry, true /* editIfNoConfig */, true /* fullScreenEdit */);
        } else if (preference == mAddWifiNetworkPreference) {