/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 19:16:04 UTC
  • Revision ID: edam@waxworlds.org-20090110191604-24xjo5brlvislhqw
- added toaster message about import abortion in onPause()
- added TODO list

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;
19
20
 
20
21
public class Doit extends WizardActivity
21
22
{
136
137
                        }
137
138
                } );
138
139
 
139
 
 
140
 
 
141
140
                _startedProgress = false;
142
141
                _maxProgress = 0;
143
142
                _tmpProgress = 0;
158
157
        {
159
158
                super.onPause();
160
159
 
 
160
                // saving the state of an import sounds complicated! Lets just abort!
161
161
                abortImport();
162
162
 
163
163
                // notify the user
164
 
 
165
 
 
 
164
        Toast.makeText( this, R.string.doit_importaborted,
 
165
                        Toast.LENGTH_LONG ).show();
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
262
263
                if( resultCode == RESULT_CANCELED )
263
264
                        abortImport();
264
265
        }