From f44da638bdfc0c237627aae9e7affe0af723e375 Mon Sep 17 00:00:00 2001 From: Anurag Das Date: Mon, 18 Dec 2017 14:47:01 +0530 Subject: [PATCH] Wifi: Restore hidden flag for hidden networks on update network Currently when user modifies any of the network parameter for hidden networks, hidden flag is not updated. As a result this network is no longer part of hidden networks, we are unable to reconnect when user triggers wifi off and on. This commit sets the value of hiddenSSID flag of config at the Settings side on network update. Test: manual test with hidden access point Bug: 73256783 Change-Id: Ic20f03345645d8bf3bc9c3ff44910dd3f2797fec --- src/com/android/settings/wifi/WifiConfigController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/android/settings/wifi/WifiConfigController.java b/src/com/android/settings/wifi/WifiConfigController.java index 693574978af..d0b85c20b4d 100644 --- a/src/com/android/settings/wifi/WifiConfigController.java +++ b/src/com/android/settings/wifi/WifiConfigController.java @@ -517,6 +517,7 @@ public class WifiConfigController implements TextWatcher, mAccessPoint.getSsidStr()); } else { config.networkId = mAccessPoint.getConfig().networkId; + config.hiddenSSID = mAccessPoint.getConfig().hiddenSSID; } config.shared = mSharedCheckBox.isChecked();