/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-05-05 21:49:43 UTC
  • Revision ID: edam@waxworlds.org-20110505214943-bg0cn6qz0gr49dlk
- updated TODO
- made varibale names consistent (camelCaseVariables now_use_underscores)

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
public class WizardActivity extends Activity
35
35
{
36
 
        private Class< ? > _nextClass;
 
36
        private Class< ? > _next_class;
37
37
 
38
38
        @Override
39
 
        protected void onCreate( Bundle savedInstanceState )
 
39
        protected void onCreate( Bundle saved_instance_state )
40
40
        {
41
 
                super.onCreate( savedInstanceState );
 
41
                super.onCreate( saved_instance_state );
42
42
 
43
43
                // enable back button based on intent data
44
44
                Bundle extras = getIntent().getExtras();
63
63
        }
64
64
 
65
65
        @Override
66
 
        protected void onActivityResult( int requestCode, int resultCode,
 
66
        protected void onActivityResult( int request_code, int result_code,
67
67
                Intent data )
68
68
        {
69
 
                if( resultCode == RESULT_OK ) {
 
69
                if( result_code == RESULT_OK ) {
70
70
                        setResult( RESULT_OK );
71
71
                        finish();
72
72
                }
77
77
                // create bundle with back enabled state
78
78
                Bundle bundle = new Bundle();
79
79
                bundle.putBoolean( "back-enabled", true );
80
 
                Intent i = new Intent( this, _nextClass );
 
80
                Intent i = new Intent( this, _next_class );
81
81
                i.putExtras( bundle );
82
82
 
83
83
                // start next activity
92
92
 
93
93
        protected void setNextActivity( Class< ? > cls )
94
94
        {
95
 
                _nextClass = cls;
 
95
                _next_class = cls;
96
96
 
97
97
                // enable next button
98
98
                ( (Button)findViewById( R.id.next ) ).setEnabled( true );
104
104
        }
105
105
 
106
106
        @Override
107
 
        public void onConfigurationChanged( Configuration newConfig ) {
108
 
                super.onConfigurationChanged( newConfig );
 
107
        public void onConfigurationChanged( Configuration new_config ) {
 
108
                super.onConfigurationChanged( new_config );
109
109
        }
110
110
}