mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-06 05:24:46 +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>
|
Guest wordlists; Host wins.</string>
|
||||||
|
|
||||||
|
|
||||||
|
<string name="downloading_dictf">Downloading %s...</string>
|
||||||
<string name="downloading_dictf">Downloading Crosswords
|
|
||||||
wordlist %s...</string>
|
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
############################################################
|
############################################################
|
||||||
|
|
|
@ -165,16 +165,17 @@ public class DictImportActivity extends XWActivity {
|
||||||
&& intent.getType().equals( "application/x-xwordsdict" ) ) {
|
&& intent.getType().equals( "application/x-xwordsdict" ) ) {
|
||||||
dft = new DownloadFilesTask( false );
|
dft = new DownloadFilesTask( false );
|
||||||
} else if ( uri.toString().endsWith( XWConstants.DICT_EXTN ) ) {
|
} 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 );
|
dft = new DownloadFilesTask( uri.toString(), false );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( null == dft ) {
|
if ( null == dft ) {
|
||||||
finish();
|
finish();
|
||||||
} else {
|
} 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 );
|
dft.execute( uri );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue