/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:58:35 UTC
  • Revision ID: tim@ed.am-20140302105835-szgzmrvr7pa5kljw
updated NEWS

Show diffs side-by-side

added added

removed removed

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