Merge "[Wi-Fi] Show not show Wi-Fi edit UI for never connected open Wi-Fi networks" into rvc-dev am: 8a80769a7e
am: 79c9bdb2d0
Change-Id: I11bdf425bbcf6e627ef2d42d713a8d47c55aef10
This commit is contained in:
@@ -544,9 +544,11 @@ public class WifiSettings2 extends RestrictedSettingsFragment
|
||||
final WifiEntry selectedEntry =
|
||||
((LongPressWifiEntryPreference) preference).getWifiEntry();
|
||||
|
||||
if (selectedEntry.getWifiConfiguration() != null) {
|
||||
if (!selectedEntry.getWifiConfiguration().getNetworkSelectionStatus()
|
||||
.hasEverConnected()) {
|
||||
// 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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user