/android/import-contacts

To get this branch, use:
bzr branch http://bzr.ed.am/android/import-contacts

« back to all changes in this revision

Viewing changes to src/am/ed/importcontacts/FileChooser.java

  • Committer: Tim Marston
  • Date: 2014-03-02 10:59:21 UTC
  • Revision ID: tim@ed.am-20140302105921-0q7ytfva236xsv8s
removed some unused code, fixed locale warnings and made showContinueOrAbort()
abort implicitly (rather than return false)

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
import java.util.ArrayList;
30
30
import java.util.Collections;
31
31
import java.util.Comparator;
 
32
import java.util.Locale;
32
33
 
33
34
import android.app.AlertDialog;
34
35
import android.app.Dialog;
425
426
                                public boolean accept( File file ) {
426
427
                                        if( file.isDirectory() || file.getName().startsWith( "." ) )
427
428
                                                return false;
428
 
                                        String filename = file.getName().toLowerCase();
 
429
                                        String filename =
 
430
                                                file.getName().toLowerCase( Locale.ENGLISH );
429
431
                                        for( int i = 0; i < _extensions.length; i++ )
430
432
                                                if( filename.endsWith( "." + _extensions[ i ] ) )
431
433
                                                        return true;