/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/org/waxworlds/edam/importcontacts/VCFImporter.java

  • Committer: edam
  • Date: 2011-03-13 17:56:28 UTC
  • Revision ID: edam@waxworlds.org-20110313175628-4sletcgkyrsww0xx
- fixed a couple of java string comparison checks

Show diffs side-by-side

added added

removed removed

350
350
                        }
351
351
 
352
352
                        // ignore empty lines
353
 
                        if( line.trim() == "" ) return;
 
353
                        if( line.trim().equals( "" ) ) return;
354
354
 
355
355
                        // split line into name and value parts (this may turn out to be
356
356
                        // unwanted if the line is a subsequent line in a multi-line
485
485
                                }
486
486
 
487
487
                                // convert 8-bit ASCII charset to US-ASCII
488
 
                                if( charset == null || charset == "ASCII" ) {
 
488
                                if( charset == null || charset.equals( "ASCII" ) ) {
489
489
                                        value = transcodeAsciiToUtf8( value );
490
490
                                        charset = "UTF-8";
491
491
                                }