mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +01:00
clear all thumbnails whenever a thumb-related pref changes
This commit is contained in:
parent
82f61b43f2
commit
049b8247ff
1 changed files with 11 additions and 0 deletions
|
@ -42,6 +42,10 @@ public class PrefsActivity extends PreferenceActivity
|
|||
private String m_smsToasting;
|
||||
private String m_smsEnable;
|
||||
private String m_downloadPath;
|
||||
private String m_thumbEnabled;
|
||||
private String m_thumbUseActive;
|
||||
private String m_thumbSize;
|
||||
|
||||
|
||||
@Override
|
||||
protected Dialog onCreateDialog( int id )
|
||||
|
@ -123,6 +127,9 @@ public class PrefsActivity extends PreferenceActivity
|
|||
m_smsToasting = getString( R.string.key_show_sms );
|
||||
m_smsEnable = getString( R.string.key_enable_sms );
|
||||
m_downloadPath = getString( R.string.key_download_path );
|
||||
m_thumbEnabled = getString( R.string.key_thumb_enabled );
|
||||
m_thumbUseActive = getString( R.string.key_thumb_useactive );
|
||||
m_thumbSize = getString( R.string.key_thumbsize );
|
||||
|
||||
Button button = (Button)findViewById( R.id.revert_colors );
|
||||
button.setOnClickListener( new View.OnClickListener() {
|
||||
|
@ -185,6 +192,10 @@ public class PrefsActivity extends PreferenceActivity
|
|||
}
|
||||
}
|
||||
DictUtils.invalDictList();
|
||||
} else if ( key.equals( m_thumbEnabled )
|
||||
|| key.equals( m_thumbUseActive )
|
||||
|| key.equals( m_thumbSize ) ) {
|
||||
DBUtils.clearThumbnails( this );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue