Missing Forget button after doing Add Network on an AP in the scanned list
Problem: On the Wifi Settings screen, if instead of clicking on the AP shown on the scanned list, we do an "Add Wi-Fi network" and enter the AP information - the AP information gets stored and the client device connects to the AP. Afterwards, if we click on the AP again the "Forget" button does not appear until we exit the Wifi Settings screen and return. Root cause and Fix: mApScanList in WifiLayer tracks the list of APs shown. Upon doing a connect through a direct click, the configured state for the AP in the list updated. However, if we do an Add Network, the configured state on mApScanList remains unupdated. This causes the Settings screen to not show "Forget" for the AP when it is clicked. The fix is to set the Configured state to true in handleSave() by fetching the AP state stored in WifiLayer. Bug: 2296038 Change-id: I70c545905a4984a03a0f235f3baf17cd36688710
Loading
Please register or sign in to comment