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

  • Committer: edam
  • Date: 2009-01-10 16:14:11 UTC
  • Revision ID: edam@waxworlds.org-20090110161411-4d17l9hs9d6j277q
Initial import

Show diffs side-by-side

added added

removed removed

16
16
import android.widget.LinearLayout;
17
17
import android.widget.ProgressBar;
18
18
import android.widget.TextView;
19
 
import android.widget.Toast;
20
19
 
21
20
public class Doit extends WizardActivity
22
21
{
137
136
                        }
138
137
                } );
139
138
 
 
139
 
 
140
 
140
141
                _startedProgress = false;
141
142
                _maxProgress = 0;
142
143
                _tmpProgress = 0;
157
158
        {
158
159
                super.onPause();
159
160
 
160
 
                // saving the state of an import sounds complicated! Lets just abort!
161
161
                abortImport();
162
162
 
163
163
                // notify the user
164
 
        Toast.makeText( this, R.string.doit_importaborted,
165
 
                        Toast.LENGTH_LONG ).show();
 
164
 
 
165
 
166
166
        }
167
167
 
168
168
        @Override
259
259
        protected void onActivityResult( int requestCode, int resultCode,
260
260
                        Intent data )
261
261
        {
262
 
                // if we're cancelling, abort any import
263
262
                if( resultCode == RESULT_CANCELED )
264
263
                        abortImport();
265
264
        }