// If set to "Custom URL", use R.string.custom_url, which will be translated, instead of the array value, which will not.
javaScriptDisabledSearchPreference.setSummary(R.string.custom_url);
} else {
// Set the array value as the summary text.
// If set to "Custom URL", use R.string.custom_url, which will be translated, instead of the array value, which will not.
javaScriptDisabledSearchPreference.setSummary(R.string.custom_url);
} else {
// Set the array value as the summary text.