From a2f0ec232aea6968058f7727562e7b76819fa16c Mon Sep 17 00:00:00 2001 From: Andy2 Date: Mon, 18 Oct 2010 06:23:24 -0700 Subject: [PATCH] put back RestartTimer call inadvertently removed --- .../src/org/eehouse/android/xw4/PollListPreference.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/PollListPreference.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/PollListPreference.java index 21a4860d2..a54da4336 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/PollListPreference.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/PollListPreference.java @@ -49,7 +49,11 @@ public class PollListPreference extends ListPreference // Preference.OnPreferenceChangeListener interface public boolean onPreferenceChange( Preference preference, Object newValue ) { - setSummaryToMatch( (String)newValue ); + String valstr = (String)newValue; + int val = Integer.parseInt(valstr); + RelayReceiver.RestartTimer( m_context, val * 1000 ); + + setSummaryToMatch( valstr ); return true; }