From d36699282cbd0a6897f425106081d3f2c0db55d4 Mon Sep 17 00:00:00 2001 From: Daisuke Miyakawa Date: Fri, 27 Aug 2010 10:04:08 -0700 Subject: [PATCH] Add Wifi Setup screen for Setup Wizard with XL size screen. * Add WifiSettingsForSetupWizardXL as a new Activity The activity has WifiSettings fragment in it. It also contains several buttons, texts around the fragment. * Making configuration UI part of Preference list. In Wifi Setup for Setup Wizard XL, WifiSettings fragment lets a UI for configuring access points shown inside a PregerenceCategory object, while it has been shown as Dialog. To achieve this action, WifiDialog is decomposed into two parts: - WifiConfigUiBase (Mainly UI part) - WifiConfigController (Mainly Wifi controller part) All codes for wifi configuration in WifiDialog is now in WifiConfigController, which is reused from WifiConfigPreference. * Misc stuff - Remove AccessPoint#compareTo(). Instead, AccessPoint.AccessPointComparater should be used when needed. Change-Id: I520d690d3301837d32f91dad54a973a379ce1989 --- AndroidManifest.xml | 5 + proguard.flags | 2 +- ...ess_point_category_for_setup_wizard_xl.xml | 29 ++ .../wifi_settings_for_setup_wizard_xl.xml | 149 +++++++ res/layout/wifi_config_preference.xml | 151 +++++++ res/values/strings.xml | 38 ++ .../wifi_access_points_for_wifi_setup_xl.xml | 24 ++ .../android/settings/ProgressCategory.java | 17 +- .../settings/ProgressCategoryBase.java | 33 ++ .../android/settings/wifi/AccessPoint.java | 63 +-- .../AccessPointCategoryForSetupWizardXL.java | 35 ++ src/com/android/settings/wifi/Summary.java | 5 +- .../settings/wifi/WifiConfigController.java | 369 +++++++++++++++++ .../settings/wifi/WifiConfigPreference.java | 129 ++++++ .../settings/wifi/WifiConfigUiBase.java | 42 ++ src/com/android/settings/wifi/WifiDialog.java | 339 ++-------------- .../android/settings/wifi/WifiSettings.java | 376 ++++++++++++++---- .../wifi/WifiSettingsForSetupWizardXL.java | 157 ++++++++ 18 files changed, 1537 insertions(+), 426 deletions(-) create mode 100644 res/layout-xlarge/access_point_category_for_setup_wizard_xl.xml create mode 100644 res/layout-xlarge/wifi_settings_for_setup_wizard_xl.xml create mode 100644 res/layout/wifi_config_preference.xml create mode 100644 res/xml/wifi_access_points_for_wifi_setup_xl.xml create mode 100644 src/com/android/settings/ProgressCategoryBase.java create mode 100644 src/com/android/settings/wifi/AccessPointCategoryForSetupWizardXL.java create mode 100644 src/com/android/settings/wifi/WifiConfigController.java create mode 100644 src/com/android/settings/wifi/WifiConfigPreference.java create mode 100644 src/com/android/settings/wifi/WifiConfigUiBase.java create mode 100644 src/com/android/settings/wifi/WifiSettingsForSetupWizardXL.java diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 2885390d115..8cb1ec31919 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -99,6 +99,11 @@ + + diff --git a/proguard.flags b/proguard.flags index 0e1b42863ba..9427b099f8f 100644 --- a/proguard.flags +++ b/proguard.flags @@ -3,4 +3,4 @@ -keep class com.android.settings.*Picker -keep class com.android.settings.*Settings -keep class com.android.settings.wifi.*Settings --keep class com.android.settings.deviceinfo.* +-keep class com.android.settings.deviceinfo.* \ No newline at end of file diff --git a/res/layout-xlarge/access_point_category_for_setup_wizard_xl.xml b/res/layout-xlarge/access_point_category_for_setup_wizard_xl.xml new file mode 100644 index 00000000000..4d52deb4312 --- /dev/null +++ b/res/layout-xlarge/access_point_category_for_setup_wizard_xl.xml @@ -0,0 +1,29 @@ + + + + + + + + diff --git a/res/layout-xlarge/wifi_settings_for_setup_wizard_xl.xml b/res/layout-xlarge/wifi_settings_for_setup_wizard_xl.xml new file mode 100644 index 00000000000..c6c5a039d81 --- /dev/null +++ b/res/layout-xlarge/wifi_settings_for_setup_wizard_xl.xml @@ -0,0 +1,149 @@ + + + + + + + + +