From 6776c67ac12161b3e5e25c8848b46656ea91be1d Mon Sep 17 00:00:00 2001 From: Maurice Lam Date: Thu, 5 Jun 2014 19:15:20 -0700 Subject: [PATCH] [WifiSetup] Use setup navigation bar Use the setup navigation bar in wifi setup activity. 1. Include frameworks/opt/setupwizard/navigationbar/common.mk in the make file. 2. Make WifiSetupActivity implement NavigationBarListener 3. Added the fragment in setup_preference.xml, wrapping the whole screen in a LinearLayout 4. Moved skip and next screen logic to WifiSetupActivity, refactored the skip dialogs into a fragment Change-Id: Ia973c0a61faa3ead201bd10d5aa8de4bc6e091c1 --- Android.mk | 6 +- res/layout/setup_preference.xml | 332 +++++++++--------- .../settings/wifi/WifiPickerActivity.java | 5 +- .../wifi/WifiSettingsForSetupWizard.java | 178 +--------- .../settings/wifi/WifiSetupActivity.java | 201 ++++++++++- 5 files changed, 385 insertions(+), 337 deletions(-) diff --git a/Android.mk b/Android.mk index 023e0c0031d..d6155470c16 100644 --- a/Android.mk +++ b/Android.mk @@ -10,6 +10,8 @@ LOCAL_SRC_FILES := \ $(call all-java-files-under, src) \ src/com/android/settings/EventLogTags.logtags +LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res + LOCAL_PACKAGE_NAME := Settings LOCAL_CERTIFICATE := platform LOCAL_PRIVILEGED_MODULE := true @@ -18,9 +20,11 @@ LOCAL_PROGUARD_FLAG_FILES := proguard.flags LOCAL_AAPT_FLAGS += -c zz_ZZ +include frameworks/opt/setupwizard/navigationbar/common.mk + include $(BUILD_PACKAGE) -# Use the folloing include to make our test apk. +# Use the following include to make our test apk. ifeq (,$(ONE_SHOT_MAKEFILE)) include $(call all-makefiles-under,$(LOCAL_PATH)) endif diff --git a/res/layout/setup_preference.xml b/res/layout/setup_preference.xml index dc6130db4a2..195214fc587 100644 --- a/res/layout/setup_preference.xml +++ b/res/layout/setup_preference.xml @@ -16,177 +16,189 @@ ** limitations under the License. */ --> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + android:layout_width="match_parent"> - -