Merge "[Wi-Fi] Show Wi-Fi editor for authentication failures" into rvc-dev am: 4eeb99d63e
am: 46f68f51e6
Change-Id: I6e114287d6495105022e498293000b8fbacda13d
This commit is contained in:
@@ -544,14 +544,9 @@ 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()) {
|
||||
launchConfigNewNetworkFragment(selectedEntry);
|
||||
return true;
|
||||
}
|
||||
if (selectedEntry.shouldEditBeforeConnect()) {
|
||||
launchConfigNewNetworkFragment(selectedEntry);
|
||||
return true;
|
||||
}
|
||||
|
||||
connect(selectedEntry, true /* editIfNoConfig */, true /* fullScreenEdit */);
|
||||
|
Reference in New Issue
Block a user