put name of file being downloaded in progress dialog

This commit is contained in:
Eric House 2012-11-30 08:08:45 -08:00
parent 74fec9d3d3
commit 13b7877a80
2 changed files with 6 additions and 7 deletions

View file

@ -1427,9 +1427,7 @@
Guest wordlists; Host wins.</string>
<string name="downloading_dictf">Downloading Crosswords
wordlist %s...</string>
<string name="downloading_dictf">Downloading %s...</string>
<!--
############################################################

View file

@ -165,16 +165,17 @@ public class DictImportActivity extends XWActivity {
&& intent.getType().equals( "application/x-xwordsdict" ) ) {
dft = new DownloadFilesTask( false );
} else if ( uri.toString().endsWith( XWConstants.DICT_EXTN ) ) {
String txt = getString( R.string.downloading_dictf,
basename( uri.getPath()) );
TextView view = (TextView)findViewById( R.id.dwnld_message );
view.setText( txt );
dft = new DownloadFilesTask( uri.toString(), false );
}
if ( null == dft ) {
finish();
} else {
String showName = basename( uri.getPath() );
String msg = getString( R.string.downloading_dictf, showName );
TextView view = (TextView)findViewById( R.id.dwnld_message );
view.setText( msg );
dft.execute( uri );
}
}