/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

431
431
                                }
432
432
                                else
433
433
                                {
 
434
                                        // ignore empty values
 
435
                                        if( string_value.length() < 1 ) return;
 
436
 
434
437
                                        // calculate how many chars to skip from beginning of line
435
438
                                        // so we skip the property "name:" part
436
439
                                        int pos = buffer.position() + name_and_params.length() + 1;
474
477
                                if( encoding != null && encoding.equals( "QUOTED-PRINTABLE" ) )
475
478
                                        unencoding_result = unencodeQuotedPrintable( value );
476
479
//                              else if( encoding != null && encoding.equals( "BASE64" ) )
477
 
//                                      unencoding_result = unencodeBase64( props[ 1 ], charset );
 
480
//                                      result = unencodeBase64( props[ 1 ], charset );
478
481
                                if( unencoding_result != null ) {
479
482
                                        value = unencoding_result.getBuffer();
480
483
                                        _parser_in_multiline =
506
509
                                String complete_value =
507
510
                                        _parser_buffered_value_so_far + string_value;
508
511
 
509
 
                                // ignore empty values
510
 
                                if( complete_value.length() < 1 ) return;
511
 
 
512
512
                                // parse some properties
513
513
                                if( name_param_parts[ 0 ].equals( "N" ) )
514
514
                                        parseN( name_param_parts, complete_value );