Bug: don't refuse to update preference summary just because it's empty.

This commit is contained in:
Andy2 2011-06-14 06:16:11 -07:00 committed by Andy2
parent 82552e681a
commit 3fdf15955e

View file

@ -196,13 +196,11 @@ public class PrefsActivity extends PreferenceActivity
{
Preference pref = getPreferenceScreen().findPreference( key );
String value = sp.getString( key, "" );
if ( ! value.equals("") ) {
if ( pref instanceof android.preference.ListPreference ) {
// Utils.logf( "%s: want to do lookup of user string here",
// key );
}
pref.setSummary( value );
}
// if ( pref instanceof android.preference.ListPreference ) {
// Utils.logf( "%s: want to do lookup of user string here",
// key );
// }
pref.setSummary( value );
}