From 8d13050917dcbb1ed6426a52c39a431905a33510 Mon Sep 17 00:00:00 2001 From: eehouse Date: Fri, 23 Apr 2010 08:50:26 +0000 Subject: [PATCH] add board size to list whose value is set as summary. --- .../src/org/eehouse/android/xw4/PrefsActivity.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 4450b264e..01e145929 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/PrefsActivity.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/PrefsActivity.java @@ -23,7 +23,7 @@ package org.eehouse.android.xw4; import android.preference.PreferenceActivity; import android.os.Bundle; import android.content.SharedPreferences; -import android.preference.EditTextPreference; +import android.preference.Preference; import android.preference.PreferenceManager; public class PrefsActivity extends PreferenceActivity @@ -40,9 +40,10 @@ public class PrefsActivity extends PreferenceActivity addPreferencesFromResource( R.xml.xwprefs ); int[] textKeyIds = { R.string.key_relay_host, - R.string.key_relay_port, - R.string.key_sms_port, - R.string.key_dict_host + R.string.key_relay_port, + R.string.key_sms_port, + R.string.key_dict_host, + R.string.key_board_size }; SharedPreferences sp @@ -84,8 +85,7 @@ public class PrefsActivity extends PreferenceActivity private void setSummary( SharedPreferences sp, String key ) { - EditTextPreference pref = (EditTextPreference)getPreferenceScreen(). - findPreference( key ); + Preference pref = getPreferenceScreen().findPreference( key ); String value = sp.getString( key, "" ); pref.setSummary( value ); }