OSDN Git Service

Fix "Add Network" show last selected WiFi AP Dialog
authorBirdson_Chen <birdson_chen@pegatroncorp.com>
Fri, 26 Jul 2013 08:48:28 +0000 (16:48 +0800)
committerBirdson_Chen <birdson_chen@pegatroncorp.com>
Mon, 29 Jul 2013 02:37:36 +0000 (10:37 +0800)
commit2dcf6083f77ea8abc200dc87eed22b8bbb45fd07
tree72d4bbccc0a31dae78ce11745b0eb4034bf71f22
parentba32c249addded770c288771748aa25d554352a0
Fix "Add Network" show last selected WiFi AP Dialog

When user taps Wi-Fi add network button, the pop-up dialog is not empty (it shows last selected WiFi AP Dialog).
The above is observed after the following steps:
- Launch Settings application
- Turn on Wi-Fi
- Select any Wi-Fi Access Point which is not connected previously and change to portrait mode
- Press Cancel from the pop-up and select Add Network icon in menu

Because the "Rotation" operation will cause WifiDialog re-creating and the current settings
of selected Wi-Fi Access Point is saved before WifiDialog destroyed.
Then, the saved Wi-Fi Access Point is displayed when user tap on "Add Network".

It need to clear the saved Wi-Fi Access Point when WifiDialog re-creating.

Change-Id: I3e93943e5bee405329e309c3ec88a35ee9cafc43
src/com/android/settings/wifi/WifiSettings.java