use constant

This commit is contained in:
Andy2 2010-09-20 18:42:43 -07:00
parent 4e9d6e712e
commit 0ac23458ba

View file

@ -91,7 +91,7 @@ public class DictImportActivity extends Activity {
&& intent.getType().equals( "application/x-xwordsdict" ) ) {
Utils.logf( "based on MIME type" );
new DownloadFilesTask().execute( uri );
} else if ( uri.toString().endsWith( ".xwd" ) ) {
} else if ( uri.toString().endsWith( XWConstants.DICT_EXTN ) ) {
String fmt = getString( R.string.downloading_dictf );
String txt = String.format( fmt, basename( uri.getPath()) );
TextView view = (TextView)findViewById( R.id.dwnld_message );