mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
fix string (which should not be hard-coded!) and use new class.
This commit is contained in:
parent
02ea8b13e0
commit
91e95eb48b
1 changed files with 2 additions and 2 deletions
|
@ -45,14 +45,14 @@ public class PollListPreference extends ListPreference
|
|||
{
|
||||
// String key = getString( R.string.key_connect_frequency );
|
||||
String val = getPersistedString( "0" );
|
||||
setSummary( String.format( "%s minutes", val ) );
|
||||
setSummary( String.format( "%s seconds", val ) );
|
||||
}
|
||||
|
||||
// Preference.OnPreferenceChangeListener interface
|
||||
public boolean onPreferenceChange( Preference preference, Object newValue )
|
||||
{
|
||||
int val = Integer.parseInt((String)newValue);
|
||||
RelayActivity.RestartTimer( m_context, val * 1000 );
|
||||
RelayReceiver.RestartTimer( m_context, val * 1000 );
|
||||
setSummary( String.format( "%d seconds", val ) );
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue