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:
Andy2 2010-12-08 18:46:25 -08:00
parent 1b40d1d47b
commit 65ea075102

View file

@ -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() );