Merge "Hide http proxy UI"
This commit is contained in:
committed by
Android (Google) Code Review
commit
8a926aa499
@@ -135,6 +135,8 @@ public class WirelessSettings extends SettingsPreferenceFragment {
|
||||
Preference mGlobalProxy = findPreference(KEY_PROXY_SETTINGS);
|
||||
DevicePolicyManager mDPM = (DevicePolicyManager)
|
||||
activity.getSystemService(Context.DEVICE_POLICY_SERVICE);
|
||||
// proxy UI disabled until we have better app support
|
||||
getPreferenceScreen().removePreference(mGlobalProxy);
|
||||
mGlobalProxy.setEnabled(mDPM.getGlobalProxyAdmin() == null);
|
||||
|
||||
// Disable Tethering if it's not allowed
|
||||
|
@@ -166,6 +166,9 @@ 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);
|
||||
|
Reference in New Issue
Block a user