From 1054ba53413fc044a9536eb97e7879f467bdc59c Mon Sep 17 00:00:00 2001 From: eehouse Date: Thu, 20 May 2010 04:28:38 +0000 Subject: [PATCH] don't replace summary with empty value --- .../XWords4/src/org/eehouse/android/xw4/PrefsActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/PrefsActivity.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/PrefsActivity.java index ef72ba227..c171af463 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/PrefsActivity.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/PrefsActivity.java @@ -89,7 +89,9 @@ public class PrefsActivity extends PreferenceActivity { Preference pref = getPreferenceScreen().findPreference( key ); String value = sp.getString( key, "" ); - pref.setSummary( value ); + if ( ! value.equals("") ) { + pref.setSummary( value ); + } } }