diff --git a/res/layout/wifi_config_preference.xml b/res/layout/wifi_config_preference.xml index 9c1844b5e71..913222f68c6 100644 --- a/res/layout/wifi_config_preference.xml +++ b/res/layout/wifi_config_preference.xml @@ -184,84 +184,6 @@ android:text="@string/wifi_show_password" /> - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/layout/wifi_config_ui_for_setup_wizard.xml b/res/layout/wifi_config_ui_for_setup_wizard.xml index 0ceb3fa2438..698ce20d4f3 100644 --- a/res/layout/wifi_config_ui_for_setup_wizard.xml +++ b/res/layout/wifi_config_ui_for_setup_wizard.xml @@ -310,84 +310,6 @@ android:text="@string/wifi_show_password" /> --> - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/layout/wifi_dialog.xml b/res/layout/wifi_dialog.xml index 35ca6f02726..a530a848d24 100644 --- a/res/layout/wifi_dialog.xml +++ b/res/layout/wifi_dialog.xml @@ -189,6 +189,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -218,7 +279,7 @@ android:singleLine="true" android:inputType="textNoSuggestions" /> - + - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/res/values/arrays.xml b/res/values/arrays.xml index 6d5526475ee..8f5f16a8a43 100644 --- a/res/values/arrays.xml +++ b/res/values/arrays.xml @@ -414,8 +414,8 @@ None - - Static + + Manual diff --git a/res/values/strings.xml b/res/values/strings.xml index 5cc4d7367de..b8bd7b1d75c 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -312,7 +312,7 @@ Clear - Port + Proxy port No Proxy for @@ -320,7 +320,7 @@ Done - Hostname + Proxy hostname Attention @@ -335,6 +335,8 @@ The port field must be empty if the host field is empty. The port you typed is not valid. + + The HTTP proxy is used by the browser but may not be used by the other applications Location: diff --git a/src/com/android/settings/wifi/WifiConfigController.java b/src/com/android/settings/wifi/WifiConfigController.java index 6bdb8cb6130..df0c4a35d24 100644 --- a/src/com/android/settings/wifi/WifiConfigController.java +++ b/src/com/android/settings/wifi/WifiConfigController.java @@ -173,9 +173,6 @@ public class WifiConfigController implements TextWatcher, mIpSettingsSpinner = (Spinner) mView.findViewById(R.id.ip_settings); mIpSettingsSpinner.setOnItemSelectedListener(this); mProxySettingsSpinner = (Spinner) mView.findViewById(R.id.proxy_settings); - // disable proxy UI until we have better app support - mProxySettingsSpinner.setVisibility(View.GONE); - mView.findViewById(R.id.proxy_settings_title).setVisibility(View.GONE); mProxySettingsSpinner.setOnItemSelectedListener(this); ViewGroup group = (ViewGroup) mView.findViewById(R.id.info); @@ -621,6 +618,7 @@ public class WifiConfigController implements TextWatcher, } if (mProxySettingsSpinner.getSelectedItemPosition() == PROXY_STATIC) { + mView.findViewById(R.id.proxy_warning_limited_support).setVisibility(View.VISIBLE); mView.findViewById(R.id.proxy_fields).setVisibility(View.VISIBLE); if (mProxyHostView == null) { mProxyHostView = (TextView) mView.findViewById(R.id.proxy_hostname); @@ -636,6 +634,7 @@ public class WifiConfigController implements TextWatcher, } } } else { + mView.findViewById(R.id.proxy_warning_limited_support).setVisibility(View.GONE); mView.findViewById(R.id.proxy_fields).setVisibility(View.GONE); } }