mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-01 06:19:57 +01:00
put name of file being downloaded in progress dialog
This commit is contained in:
parent
74fec9d3d3
commit
13b7877a80
2 changed files with 6 additions and 7 deletions
|
@ -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>
|
||||
|
||||
<!--
|
||||
############################################################
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue