Bug 695458 - Update Preferences (crash fix followup) [r=mfinkle]

This commit is contained in:
Brian Nicholson 2011-10-25 19:27:54 -04:00
parent 28b889b935
commit 54cf8b69a6

View File

@ -91,7 +91,8 @@ public class GeckoPreferences
public boolean onPreferenceChange(Preference preference, Object newValue) {
String prefName = preference.getKey();
setPreference(prefName, newValue);
((ListPreference)preference).setSummary((String)newValue);
if (preference instanceof ListPreference)
((ListPreference)preference).setSummary((String)newValue);
return true;
}