Merge "Adds the headers for choose lock generic inside onCreate" into nyc-dev
diff --git a/res/layout/wifi_dialog.xml b/res/layout/wifi_dialog.xml
index 05c33d7..44523f4 100644
--- a/res/layout/wifi_dialog.xml
+++ b/res/layout/wifi_dialog.xml
@@ -175,6 +175,18 @@
android:inputType="textNoSuggestions" />
</LinearLayout>
+ <LinearLayout android:id="@+id/no_domain_warning"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:visibility="gone"
+ style="@style/wifi_item" >
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ style="@style/wifi_item_warning"
+ android:text="@string/wifi_no_domain_warning" />
+ </LinearLayout>
+
<LinearLayout android:id="@+id/l_user_cert"
android:layout_width="match_parent"
android:layout_height="wrap_content"
diff --git a/res/values/strings.xml b/res/values/strings.xml
index be9a09c..5d093f1 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -148,7 +148,7 @@
<string name="sdcard_format" product="default">Erase SD card</string>
<!-- Summary of font size setting screen. [CHAR LIMIT=NONE] -->
- <string name="font_size_summary">Make text on screen smaller or larger.</string>
+ <string name="font_size_summary">Make the text on screen smaller or larger.</string>
<!-- choice for the font size spinner -->
<string name="small_font">Small</string>
@@ -1644,12 +1644,17 @@
<string name="wifi_unspecified">Please select</string>
<!-- Hint for multiple certificates being added to the configuration -->
<string name="wifi_multiple_cert_added">(Multiple certificates added)</string>
+ <!-- Menu option for using trusted system CA certificates to validate EAP servers -->
+ <string name="wifi_use_system_certs">Use system certificates</string>
<!-- Menu option for not providing an EAP user certificate -->
<string name="wifi_do_not_provide_eap_user_cert">Do not provide</string>
<!-- Menu option for not validating the EAP server -->
<string name="wifi_do_not_validate_eap_server">Do not validate</string>
<!-- Warning message displayed if user choses not to validate the EAP server -->
<string name="wifi_do_not_validate_eap_server_warning">No certificate specified. Your connection will not be private.</string>
+ <!-- Warning message displayed if user does not specify a domain for the CA certificate.
+ Only displayed if the user also chooses to use system certificates. -->
+ <string name="wifi_no_domain_warning">Must specify a domain.</string>
<!-- Substring of status line when Wi-Fi Protected Setup (WPS) is available and
string is listed first [CHAR LIMIT=20]-->
<string name="wifi_wps_available_first_item">WPS available</string>
@@ -2109,6 +2114,8 @@
<string name="doze_summary">Wake screen when you pick up device or receive notifications</string>
<!-- [CHAR LIMIT=30] Sound & display settings screen, setting option name to change font size -->
<string name="title_font_size">Font size</string>
+ <!-- Summary for Font size. Lets the user know that this will make text larger or smaller. Appears in the accessibility portion of setup wizard. [CHAR LIMIT=NONE] -->
+ <string name="short_summary_font_size">Make text larger or smaller</string>
<!-- Sound & display settings screen, setting option summary displaying the currently selected font size -->
<string name="summary_font_size" translatable="false">%1$s</string>
@@ -3747,13 +3754,13 @@
<!-- Settings title for a brief version of Vision-Related Accessibility Settings. Displayed in Setup Wizard only. [CHAR LIMIT=35] -->
<string name="vision_settings_title">Vision Settings</string>
<!-- Settings description for a brief version of Vision-Related Accessibility Settings. Tells the user that they can adjust these settings now to help them through the remainder of the Setup Wizard and that they can later be changed in Settings. Displayed in Setup Wizard only. [CHAR LIMIT=none] -->
- <string name="vision_settings_description">Adjust these settings now to assist you through the remainder of the set up process. You can adjust them any time in device settings.</string>
+ <string name="vision_settings_description">You can customize this device to fit your needs. These accessibility features can be changed later in Settings.</string>
<!-- Title for the accessibility preference category of accessibility services. [CHAR LIMIT=25] -->
<string name="accessibility_services_title">Services</string>
<!-- Title for the Talkback Accessibility Service. Displayed on the Accessibility Settings screen in Setup Wizard. [CHAR_LIMIT=25] -->
<string name="talkback_title">Talkback</string>
<!-- Summary for the Talkback Accessibility Service. Lets the user know that Talkback is a screenreader and that it is usually most helpful to blind and low vision users and whether the service is on. [CHAR_LIMIT=none] -->
- <string name="talkback_summary">Screenreader tool primarily for people with blindness and low vision\n<xliff:g id="service_state" example="On">%1$s</xliff:g></string>
+ <string name="talkback_summary">Screen reader primarily for people with blindness and low vision</string>
<!-- Title for the accessibility preference category of system related preferences. [CHAR LIMIT=25] -->
<string name="accessibility_system_title">System</string>
<!-- Title for the accessibility preference category of display related preferences. [CHAR LIMIT=25] -->
@@ -3761,9 +3768,11 @@
<!-- Title for the accessibility preference screen to enable video captioning. [CHAR LIMIT=35] -->
<string name="accessibility_captioning_title">Captions</string>
<!-- Title for the accessibility preference screen to enable screen magnification. [CHAR LIMIT=35] -->
- <string name="accessibility_screen_magnification_title">Magnification gestures</string>
+ <string name="accessibility_screen_magnification_title">Magnification gesture</string>
+ <!-- Short summary for Magnification gesture. Tells the user that this feature allows the user to magnify the screen by tapping 3 times. Appears in accessibility portion of setup wizard -->
+ <string name="accessibility_screen_magnification_short_summary">Tap 3 times to zoom</string>
<!-- Summary for the accessibility preference screen to enable screen magnification. [CHAR LIMIT=none] -->
- <string name="accessibility_screen_magnification_summary">Zoom in and out by triple-tapping the screen with one finger.\n\nWhile zoomed in, you can:\n<ul><li>Pan: Drag two or more fingers across the screen.</li>\n<li>Adjust zoom level: Pinch two or more fingers together or spread them apart.</li>\n<li>Temporariliy magnify: Triple-tap, hold, and drag your finger to explore different parts of the screen. Lift your finger to return to your previous state.</li></ul>\n\nTriple-tap for magnification works everywhere except the keyboard and navigation bar.</string>
+ <string name="accessibility_screen_magnification_summary">To zoom in and out tap the screen 3 times with one finger.\n\nWhile zoomed in, you can:\n<ul>\n<li>Scroll: Drag 2 or more fingers across the screen</li>\n<li>Adjust zoom level: Pinch 2 or more fingers together or spread them apart</li></ul>\n\nTo zoom temporarily, tap 3 times and hold on the last tap. While holding your finger down, drag to move around the screen. Lift your finger to zoom back out.\n\nNote: Magnification gesture works everywhere except the keyboard and navigation bar.</string>
<!-- Title for the preference to enable the global geture that turns on accessibility. [CHAR LIMIT=35] -->
<string name="accessibility_global_gesture_preference_title">Accessibility shortcut</string>
<!-- Summary for the preference to enable the global geture that turns on accessibility (on state). [CHAR LIMIT=60] -->
@@ -3774,8 +3783,6 @@
<string name="accessibility_global_gesture_preference_description">When this feature is turned on, you can quickly activate accessibility features in two steps:\n\nStep 1: Press and hold the power button until you hear a sound or feel a vibration.\n\nStep 2: Tap & hold two fingers until you hear audio confirmation.\n\nIf the device has multiple users, using this shortcut on the lock screen temporarily enables accessibility until the device is unlocked.</string>
<!-- Title for the accessibility preference to high contrast text. [CHAR LIMIT=35] -->
<string name="accessibility_toggle_high_text_contrast_preference_title">High contrast text</string>
- <!-- Title for the accessibility preference to enable screen magnification. [CHAR LIMIT=35] -->
- <string name="accessibility_toggle_screen_magnification_preference_title">Screen magnification</string>
<!-- Title for the accessibility preference to auto update screen magnification. [CHAR LIMIT=35] -->
<string name="accessibility_toggle_screen_magnification_auto_update_preference_title">Auto
update screen magnification</string>
@@ -6816,11 +6823,13 @@
<string name="camera_double_tap_power_gesture_desc">Quickly open camera without unlocking your screen</string>
<!-- Title of setting that controls screen zoom (e.g. how large interface elements appear). [CHAR LIMIT=40] -->
- <string name="screen_zoom_title">Magnify display</string>
+ <string name="screen_zoom_title">Display size</string>
+ <!-- Short summary for Magnification gesture. Lets the user know that this makes items on screen larger or smaller. Appears in the accessibility portion of Setup Wizard. [CHAR LIMIT=NONE] -->
+ <string name="screen_zoom_short_summary">Make items on screen larger or smaller</string>
<!-- Keywords for setting that controls screen zoom (e.g. how large interface elements appear). [CHAR LIMIT=NONE] -->
<string name="screen_zoom_keywords">display density, screen zoom, scale, scaling</string>
<!-- Summary of screen zoom setting screen. [CHAR LIMIT=NONE] -->
- <string name="screen_zoom_summary">Make all items on screen smaller or larger. Some apps on your home screen may change position after changing this setting.</string>
+ <string name="screen_zoom_summary">Make the items on your screen smaller or larger. Some apps on your screen may change position.</string>
<!-- Title of the screen zoom preview activity. -->
<string name="screen_zoom_preview_title">Preview</string>
<!-- Description for the button that makes interface elements smaller. [CHAR_LIMIT=NONE] -->
diff --git a/res/xml/accessibility_settings_for_setup_wizard.xml b/res/xml/accessibility_settings_for_setup_wizard.xml
index 0e487b8..49a840b 100644
--- a/res/xml/accessibility_settings_for_setup_wizard.xml
+++ b/res/xml/accessibility_settings_for_setup_wizard.xml
@@ -23,26 +23,28 @@
android:title="@string/vision_settings_description"
android:layout="@layout/preference_multiline_title" />
- <com.android.settings.display.ScreenZoomPreference
- android:key="force_density_preference"
- android:title="@string/screen_zoom_title"
- android:summary="%s" />
-
- <Preference
- android:fragment="com.android.settings.accessibility.ToggleFontSizePreferenceFragment"
- android:key="font_size_preference"
- android:title="@string/title_font_size" />
-
<Preference
android:fragment=
"com.android.settings.accessibility.ToggleScreenMagnificationPreferenceFragment"
android:key="screen_magnification_preference"
android:title="@string/accessibility_screen_magnification_title"
- android:summary="%s" />
+ android:summary="@string/accessibility_screen_magnification_short_summary" />
+
+ <Preference
+ android:fragment="com.android.settings.accessibility.ToggleFontSizePreferenceFragment"
+ android:key="font_size_preference"
+ android:title="@string/title_font_size"
+ android:summary="@string/short_summary_font_size" />
+
+ <com.android.settings.display.ScreenZoomPreference
+ android:key="force_density_preference"
+ android:title="@string/screen_zoom_title"
+ android:summary="@string/screen_zoom_short_summary" />
<Preference
android:key="talkback_preference"
android:title="@string/talkback_title"
+ android:summary="@string/talkback_summary"
android:persistent="true" />
</PreferenceScreen>
diff --git a/src/com/android/settings/DeviceInfoSettings.java b/src/com/android/settings/DeviceInfoSettings.java
index 2e74fdd..94336e6 100644
--- a/src/com/android/settings/DeviceInfoSettings.java
+++ b/src/com/android/settings/DeviceInfoSettings.java
@@ -104,7 +104,7 @@
findPreference(KEY_FIRMWARE_VERSION).setEnabled(true);
final String patch = DeviceInfoUtils.getSecurityPatch();
- if (TextUtils.isEmpty(patch)) {
+ if (!TextUtils.isEmpty(patch)) {
setStringSummary(KEY_SECURITY_PATCH, patch);
} else {
getPreferenceScreen().removePreference(findPreference(KEY_SECURITY_PATCH));
diff --git a/src/com/android/settings/accessibility/AccessibilitySettingsForSetupWizard.java b/src/com/android/settings/accessibility/AccessibilitySettingsForSetupWizard.java
index 22ea1f1..26f5f39 100644
--- a/src/com/android/settings/accessibility/AccessibilitySettingsForSetupWizard.java
+++ b/src/com/android/settings/accessibility/AccessibilitySettingsForSetupWizard.java
@@ -48,7 +48,6 @@
// Preference controls.
private Preference mDisplayMagnificationPreference;
- private Preference mFontSizePreference;
private Preference mTalkbackPreference;
@Override
@@ -62,7 +61,6 @@
addPreferencesFromResource(R.xml.accessibility_settings_for_setup_wizard);
mDisplayMagnificationPreference = findPreference(DISPLAY_MAGNIFICATION_PREFERENCE);
- mFontSizePreference = findPreference(FONT_SIZE_PREFERENCE);
mTalkbackPreference = findPreference(TALKBACK_PREFERENCE);
}
@@ -73,12 +71,6 @@
}
@Override
- public void onResume() {
- super.onResume();
- updatePreferences();
- }
-
- @Override
public boolean onPreferenceChange(Preference preference, Object newValue) {
return false;
}
@@ -161,35 +153,4 @@
return super.onPreferenceTreeClick(preference);
}
-
- private void updatePreferences() {
- updateFeatureSummary(Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED,
- mDisplayMagnificationPreference);
- updateFontSizeSummary(mFontSizePreference);
- updateTalkbackSummary();
- }
-
- private void updateFeatureSummary(String prefKey, Preference pref) {
- final boolean enabled = Settings.Secure.getInt(getContentResolver(), prefKey, 0) == 1;
- pref.setSummary(enabled ? R.string.accessibility_feature_state_on
- : R.string.accessibility_feature_state_off);
- }
-
- private void updateFontSizeSummary(Preference pref) {
- final Resources res = getContext().getResources();
- final String[] entries = res.getStringArray(R.array.entries_font_size);
- final String[] strEntryValues = res.getStringArray(R.array.entryvalues_font_size);
- final int index = ToggleFontSizePreferenceFragment.fontSizeValueToIndex(
- res.getConfiguration().fontScale, strEntryValues);
- pref.setSummary(entries[index]);
- }
-
- private void updateTalkbackSummary() {
- final boolean enabled = Settings.Secure.getInt(getContentResolver(),
- Settings.Secure.ACCESSIBILITY_ENABLED, 0) == 1;
- final String enabledText = (enabled
- ? getString(R.string.accessibility_feature_state_on)
- : getString(R.string.accessibility_feature_state_off));
- mTalkbackPreference.setSummary(getString(R.string.talkback_summary, enabledText));
- }
}
diff --git a/src/com/android/settings/fingerprint/FingerprintUiHelper.java b/src/com/android/settings/fingerprint/FingerprintUiHelper.java
index cf37050..df09c49 100644
--- a/src/com/android/settings/fingerprint/FingerprintUiHelper.java
+++ b/src/com/android/settings/fingerprint/FingerprintUiHelper.java
@@ -49,7 +49,8 @@
}
public void startListening() {
- if (mFingerprintManager.getEnrolledFingerprints(mUserId).size() > 0) {
+ if (mFingerprintManager != null
+ && mFingerprintManager.getEnrolledFingerprints(mUserId).size() > 0) {
mCancellationSignal = new CancellationSignal();
mFingerprintManager.setActiveUser(mUserId);
mFingerprintManager.authenticate(
diff --git a/src/com/android/settings/wifi/WifiConfigController.java b/src/com/android/settings/wifi/WifiConfigController.java
index e0079cb..fbdc4bf 100644
--- a/src/com/android/settings/wifi/WifiConfigController.java
+++ b/src/com/android/settings/wifi/WifiConfigController.java
@@ -77,6 +77,8 @@
TextView.OnEditorActionListener, View.OnKeyListener{
private static final String TAG = "WifiConfigController";
+ private static final String SYSTEM_CA_STORE_PATH = "/system/etc/security/cacerts";
+
private final WifiConfigUiBase mConfigUi;
private final View mView;
private final AccessPoint mAccessPoint;
@@ -117,10 +119,7 @@
private String mUnspecifiedCertString;
private String mMultipleCertSetString;
- private static final int UNSPECIFIED_CERT_INDEX = 0;
- private static final int NO_CERT_INDEX = 1;
- private static final int MULTIPLE_CERT_SET_INDEX = 2;
-
+ private String mUseSystemCertsString;
private String mDoNotProvideEapUserCertString;
private String mDoNotValidateEapServerString;
@@ -188,6 +187,7 @@
mUnspecifiedCertString = mContext.getString(R.string.wifi_unspecified);
mMultipleCertSetString = mContext.getString(R.string.wifi_multiple_cert_added);
+ mUseSystemCertsString = mContext.getString(R.string.wifi_use_system_certs);
mDoNotProvideEapUserCertString =
mContext.getString(R.string.wifi_do_not_provide_eap_user_cert);
mDoNotValidateEapServerString =
@@ -397,28 +397,54 @@
enabled = ipAndProxyFieldsAreValid();
}
if (mEapCaCertSpinner != null
- && mView.findViewById(R.id.l_ca_cert).getVisibility() != View.GONE
- && ((String) mEapCaCertSpinner.getSelectedItem()).equals(mUnspecifiedCertString)) {
- enabled = false;
+ && mView.findViewById(R.id.l_ca_cert).getVisibility() != View.GONE) {
+ String caCertSelection = (String) mEapCaCertSpinner.getSelectedItem();
+ if (caCertSelection.equals(mUnspecifiedCertString)) {
+ // Disallow submit if the user has not selected a CA certificate for an EAP network
+ // configuration.
+ enabled = false;
+ }
+ if (caCertSelection.equals(mUseSystemCertsString)
+ && mEapDomainView != null
+ && mView.findViewById(R.id.l_domain).getVisibility() != View.GONE
+ && TextUtils.isEmpty(mEapDomainView.getText().toString())) {
+ // Disallow submit if the user chooses to use system certificates for EAP server
+ // validation, but does not provide a domain.
+ enabled = false;
+ }
}
if (mEapUserCertSpinner != null
&& mView.findViewById(R.id.l_user_cert).getVisibility() != View.GONE
&& ((String) mEapUserCertSpinner.getSelectedItem())
.equals(mUnspecifiedCertString)) {
+ // Disallow submit if the user has not selected a user certificate for an EAP network
+ // configuration.
enabled = false;
}
return enabled;
}
- void showWarningMessageIfAppropriate() {
+ void showWarningMessagesIfAppropriate() {
mView.findViewById(R.id.no_ca_cert_warning).setVisibility(View.GONE);
+ mView.findViewById(R.id.no_domain_warning).setVisibility(View.GONE);
+
if (mEapCaCertSpinner != null
- && mView.findViewById(R.id.l_ca_cert).getVisibility() != View.GONE
- && ((String) mEapCaCertSpinner.getSelectedItem())
- .equals(mDoNotValidateEapServerString)) {
- // Display warning if user chooses not to validate the EAP server with a user-supplied
- // CA certificate in an EAP network configuration.
- mView.findViewById(R.id.no_ca_cert_warning).setVisibility(View.VISIBLE);
+ && mView.findViewById(R.id.l_ca_cert).getVisibility() != View.GONE) {
+ String caCertSelection = (String) mEapCaCertSpinner.getSelectedItem();
+ if (caCertSelection.equals(mDoNotValidateEapServerString)) {
+ // Display warning if user chooses not to validate the EAP server with a
+ // user-supplied CA certificate in an EAP network configuration.
+ mView.findViewById(R.id.no_ca_cert_warning).setVisibility(View.VISIBLE);
+ }
+ if (caCertSelection.equals(mUseSystemCertsString)
+ && mEapDomainView != null
+ && mView.findViewById(R.id.l_domain).getVisibility() != View.GONE
+ && TextUtils.isEmpty(mEapDomainView.getText().toString())) {
+ // Display warning if user chooses to use pre-installed public CA certificates
+ // without restricting the server domain that these certificates can be used to
+ // validate.
+ mView.findViewById(R.id.no_domain_warning).setVisibility(View.VISIBLE);
+ }
}
}
@@ -518,7 +544,9 @@
} else {
config.enterpriseConfig.setDomainSuffixMatch(
mEapDomainView.getText().toString());
- if (caCert.equals(mMultipleCertSetString)) {
+ if (caCert.equals(mUseSystemCertsString)) {
+ config.enterpriseConfig.setCaPath(SYSTEM_CA_STORE_PATH);
+ } else if (caCert.equals(mMultipleCertSetString)) {
if (mAccessPoint != null) {
if (!mAccessPoint.isSaved()) {
Log.e(TAG, "Multiple certs can only be set "
@@ -745,15 +773,24 @@
mEapCaCertSpinner = (Spinner) mView.findViewById(R.id.ca_cert);
mEapCaCertSpinner.setOnItemSelectedListener(this);
mEapDomainView = (TextView) mView.findViewById(R.id.domain);
+ mEapDomainView.addTextChangedListener(this);
mEapUserCertSpinner = (Spinner) mView.findViewById(R.id.user_cert);
mEapUserCertSpinner.setOnItemSelectedListener(this);
mEapIdentityView = (TextView) mView.findViewById(R.id.identity);
mEapAnonymousView = (TextView) mView.findViewById(R.id.anonymous);
- loadCertificates(mEapCaCertSpinner, Credentials.CA_CERTIFICATE, false,
- mDoNotValidateEapServerString);
- loadCertificates(mEapUserCertSpinner, Credentials.USER_PRIVATE_KEY, false,
- mDoNotProvideEapUserCertString);
+ loadCertificates(
+ mEapCaCertSpinner,
+ Credentials.CA_CERTIFICATE,
+ mDoNotValidateEapServerString,
+ false,
+ true);
+ loadCertificates(
+ mEapUserCertSpinner,
+ Credentials.USER_PRIVATE_KEY,
+ mDoNotProvideEapUserCertString,
+ false,
+ false);
// Modifying an existing network
if (mAccessPoint != null && mAccessPoint.isSaved()) {
@@ -783,16 +820,24 @@
mPhase2Spinner.setSelection(phase2Method);
break;
}
- String[] caCerts = enterpriseConfig.getCaCertificateAliases();
- if (caCerts == null) {
- setSelection(mEapCaCertSpinner, mDoNotValidateEapServerString);
- } else if (caCerts.length == 1) {
- setSelection(mEapCaCertSpinner, caCerts[0]);
+ if (!TextUtils.isEmpty(enterpriseConfig.getCaPath())) {
+ setSelection(mEapCaCertSpinner, mUseSystemCertsString);
} else {
- // Reload the cert spinner with an extra "multiple certificates added" item
- loadCertificates(mEapCaCertSpinner,
- Credentials.CA_CERTIFICATE, true, mDoNotValidateEapServerString);
- mEapCaCertSpinner.setSelection(MULTIPLE_CERT_SET_INDEX);
+ String[] caCerts = enterpriseConfig.getCaCertificateAliases();
+ if (caCerts == null) {
+ setSelection(mEapCaCertSpinner, mDoNotValidateEapServerString);
+ } else if (caCerts.length == 1) {
+ setSelection(mEapCaCertSpinner, caCerts[0]);
+ } else {
+ // Reload the cert spinner with an extra "multiple certificates added" item.
+ loadCertificates(
+ mEapCaCertSpinner,
+ Credentials.CA_CERTIFICATE,
+ mDoNotValidateEapServerString,
+ true,
+ true);
+ setSelection(mEapCaCertSpinner, mMultipleCertSetString);
+ }
}
mEapDomainView.setText(enterpriseConfig.getDomainSuffixMatch());
String userCert = enterpriseConfig.getClientCertificateAlias();
@@ -916,7 +961,7 @@
private void setCaCertInvisible() {
mView.findViewById(R.id.l_ca_cert).setVisibility(View.GONE);
- mEapCaCertSpinner.setSelection(UNSPECIFIED_CERT_INDEX);
+ setSelection(mEapCaCertSpinner, mUnspecifiedCertString);
}
private void setDomainInvisible() {
@@ -926,7 +971,7 @@
private void setUserCertInvisible() {
mView.findViewById(R.id.l_user_cert).setVisibility(View.GONE);
- mEapUserCertSpinner.setSelection(UNSPECIFIED_CERT_INDEX);
+ setSelection(mEapUserCertSpinner, mUnspecifiedCertString);
}
private void setAnonymousIdentInvisible() {
@@ -1051,17 +1096,24 @@
}
private void loadCertificates(
- Spinner spinner, String prefix, boolean showMultipleCerts, String noCertificateString) {
+ Spinner spinner,
+ String prefix,
+ String noCertificateString,
+ boolean showMultipleCerts,
+ boolean showUsePreinstalledCertOption) {
final Context context = mConfigUi.getContext();
ArrayList<String> certs = new ArrayList<String>();
- certs.add(UNSPECIFIED_CERT_INDEX, mUnspecifiedCertString);
- certs.add(NO_CERT_INDEX, noCertificateString);
+ certs.add(mUnspecifiedCertString);
if (showMultipleCerts) {
- certs.add(MULTIPLE_CERT_SET_INDEX, mMultipleCertSetString);
+ certs.add(mMultipleCertSetString);
+ }
+ if (showUsePreinstalledCertOption) {
+ certs.add(mUseSystemCertsString);
}
certs.addAll(
Arrays.asList(KeyStore.getInstance().list(prefix, android.os.Process.WIFI_UID)));
+ certs.add(noCertificateString);
final ArrayAdapter<String> adapter = new ArrayAdapter<String>(
context, android.R.layout.simple_spinner_item,
@@ -1091,6 +1143,7 @@
public void afterTextChanged(Editable s) {
mTextViewChangedHandler.post(new Runnable() {
public void run() {
+ showWarningMessagesIfAppropriate();
enableSubmitIfAppropriate();
}
});
@@ -1159,7 +1212,7 @@
} else {
showIpConfigFields();
}
- showWarningMessageIfAppropriate();
+ showWarningMessagesIfAppropriate();
enableSubmitIfAppropriate();
}