mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
when downloading new dict inval the info cache to it'll get reloaded
-- in case we're overwriting one with the same name.
This commit is contained in:
parent
1b40d1d47b
commit
65ea075102
1 changed files with 3 additions and 1 deletions
|
@ -107,7 +107,9 @@ public class DictImportActivity extends XWActivity {
|
|||
private void saveDict( InputStream inputStream, String path )
|
||||
{
|
||||
try {
|
||||
GameUtils.saveDict( this, basename(path), inputStream );
|
||||
String name = basename( path );
|
||||
GameUtils.saveDict( this, name, inputStream );
|
||||
DictLangCache.inval( GameUtils.removeDictExtn( name ) );
|
||||
inputStream.close();
|
||||
} catch ( java.io.IOException ioe ) {
|
||||
Utils.logf( "IOException: %s" + ioe.toString() );
|
||||
|
|
Loading…
Reference in a new issue