/android/export-contacts

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

« back to all changes in this revision

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

  • Committer: Tim Marston
  • Date: 2014-03-02 11:03:07 UTC
  • Revision ID: tim@ed.am-20140302110307-nnrn9dhfnjg06lve
removed some unused code, fixed locale warnings and made showContinueOrAbort()
abort implicitly (rather than return false); added check for unidentifiable
contacts; fixed spelling mistake

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;
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;