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 073b9b08fb
commit 9f62d867e3

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;
}