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

  • Committer: edam
  • Date: 2011-05-30 15:33:01 UTC
  • Revision ID: edam@waxworlds.org-20110530153301-oor6ci9b3hf9clul
- refactored some code to do with how contacts are imported
- Vcards (and ContactData) instances now generate a CacheIdentifier when they are finalised so that ContactData instances that do not have enough information to identify them can be discovered then
- importContact() now calls the private method checkForDuplicate(), renamed from isImportRequired(), and return if it is not
- importContact() and checkForDuplicate() now use the ContactData's generated CacheIdentifier

Show diffs side-by-side

added added

removed removed

33
33
public class Intro extends WizardActivity {
34
34
 
35
35
        @Override
36
 
        protected void onCreate( Bundle savedInstanceState )
 
36
        protected void onCreate( Bundle saved_instance_state )
37
37
        {
38
38
                setContentView( R.layout.intro );
39
 
                super.onCreate( savedInstanceState );
 
39
                super.onCreate( saved_instance_state );
40
40
 
41
41
                setNextActivity( ConfigureVCF.class );
42
42
 
43
43
                TextView link = (TextView)findViewById( R.id.intro_link );
44
 
                Linkify.addLinks( link, Pattern.compile( "The Import Contacts homepage" ),
 
44
                Linkify.addLinks( link,
 
45
                        Pattern.compile( "The Import Contacts homepage" ),
45
46
                        "", null, new Linkify.TransformFilter() {
46
47
                                public String transformUrl( Matcher match, String url ) {
47
48
                                        return "http://www.waxworlds.org/edam/software/android/import-contacts";