/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/WizardActivity.java

  • Committer: edam
  • Date: 2011-03-19 20:33:09 UTC
  • Revision ID: edam@waxworlds.org-20110319203309-5dzfyqrxwk94jtin
- formatting: removed some double-indents on overrunning lines
- updated TODO and NEWS
- rewrote central logic of parser so it makes more sense, looks nicer and has a small optimisation (getting name and params from line only when necessary)
- optimised unnecessary mutliple converting of lines to US-ASCII
- re-wrote line extraction from vcards so that we can lookahead for v3 folded lines
- added support for v3 folded lines

Show diffs side-by-side

added added

removed removed

26
26
import android.app.Activity;
27
27
import android.content.Intent;
28
28
import android.content.SharedPreferences;
 
29
import android.content.res.Configuration;
29
30
import android.os.Bundle;
30
31
import android.view.View;
31
32
import android.widget.Button;
62
63
        }
63
64
 
64
65
        @Override
65
 
        protected void  onActivityResult( int requestCode, int resultCode, Intent data )
 
66
        protected void onActivityResult( int requestCode, int resultCode,
 
67
                Intent data )
66
68
        {
67
69
                if( resultCode == RESULT_OK ) {
68
70
                        setResult( RESULT_OK );
100
102
        {
101
103
                return super.getSharedPreferences( "ImportContacts", 0 );
102
104
        }
 
105
 
 
106
        @Override
 
107
        public void onConfigurationChanged( Configuration newConfig ) {
 
108
                super.onConfigurationChanged( newConfig );
 
109
        }
103
110
}