/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/importcontacts/Merge.java

  • Committer: edam
  • Date: 2009-01-13 06:35:26 UTC
  • Revision ID: edam@waxworlds.org-20090113063526-l9t1s9git4bav60a
- new contact's phone numebrs and email addresses are added to the caches after those contacts are updated to account for the situation where the same contact is imported again from another file (or the contact exists twice in the same file!?)

Show diffs side-by-side

added added

removed removed

21
21
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
22
22
 */
23
23
 
24
 
package org.waxworlds.edam.importcontacts;
 
24
package org.waxworlds.importcontacts;
25
25
 
26
26
import android.content.SharedPreferences;
27
27
import android.os.Bundle;
30
30
public class Merge extends WizardActivity
31
31
{
32
32
        @Override
33
 
        protected void onCreate( Bundle saved_instance_state )
 
33
        protected void onCreate( Bundle savedInstanceState )
34
34
        {
35
35
                setContentView( R.layout.merge );
36
 
                super.onCreate( saved_instance_state );
 
36
                super.onCreate( savedInstanceState );
37
37
 
38
 
                setNextActivity( Doit.class );
 
38
                setNextState( ImportContacts.STATE_DOIT );
39
39
        }
40
40
 
41
41
        @Override
47
47
 
48
48
                // radio button selection
49
49
                RadioGroup rg = (RadioGroup)findViewById( R.id.merge_setting );
50
 
                editor.putInt( "merge_setting",
51
 
                        Doit.convertIdToAction( rg.getCheckedRadioButtonId() ) );
 
50
                editor.putInt( "merge_setting", rg.getCheckedRadioButtonId() );
52
51
 
53
52
                editor.commit();
54
53
        }
62
61
 
63
62
                // radio button selection
64
63
                RadioGroup rg = (RadioGroup)findViewById( R.id.merge_setting );
65
 
                rg.check( Doit.convertActionToId(
66
 
                        prefs.getInt( "merge_setting", Doit.ACTION_PROMPT ) ) );
 
64
                rg.check( prefs.getInt( "merge_setting", R.id.merge_prompt ) );
67
65
        }
68
66
 
69
67