From 90380120e72a9bebd2fd198372c423afc9b0eeec Mon Sep 17 00:00:00 2001 From: Irfan Sheriff Date: Mon, 27 Feb 2012 16:20:29 -0800 Subject: [PATCH] Enhance and fix WPS UI - Fixes WPS usage for open network - Exposes WPS on UI for easy access to push button and pin based techniques - Adds support for cancelling WPS - Adds a dialog that reports a progress since WPS can take quite a bit of time to complete The WpsDialog code is enhanced from contribution by yoshihiko.ikenaga@jp.sony.com on partner source. Change-Id: Ib0103507e0192e8195e7bfeb1c8e8855c20e23ca --- res/layout/wifi_dialog.xml | 29 -- res/layout/wifi_wps_dialog.xml | 59 ++++ res/values/arrays.xml | 13 - res/values/strings.xml | 46 ++-- .../settings/wifi/WifiConfigController.java | 77 +----- .../android/settings/wifi/WifiSettings.java | 153 +++++------ src/com/android/settings/wifi/WpsDialog.java | 251 ++++++++++++++++++ 7 files changed, 406 insertions(+), 222 deletions(-) create mode 100644 res/layout/wifi_wps_dialog.xml create mode 100644 src/com/android/settings/wifi/WpsDialog.java diff --git a/res/layout/wifi_dialog.xml b/res/layout/wifi_dialog.xml index f06c33207ac..0e6d63ab554 100644 --- a/res/layout/wifi_dialog.xml +++ b/res/layout/wifi_dialog.xml @@ -179,35 +179,6 @@ android:layout_height="wrap_content" android:orientation="vertical" android:visibility="gone"> - - - - - - - - - - - - - - - + + + + + + + + + + + + + + +