summaryrefslogtreecommitdiffstats
path: root/src/com/android/calendar/EditEventActivity.java
diff options
context:
space:
mode:
authorErik <roboerik@android.com>2010-06-21 11:27:38 -0700
committerErik <roboerik@android.com>2010-06-22 11:09:03 -0700
commit88c483a0189cbe7132330cb1b563f07326f3bcf9 (patch)
tree28ef443c8832b9393165c7d87e38f60ec346a38a /src/com/android/calendar/EditEventActivity.java
parentbed0275111ecc6c4a3a638f90a9bac13bee594f4 (diff)
downloadandroid_packages_apps_Calendar-88c483a0189cbe7132330cb1b563f07326f3bcf9.tar.gz
android_packages_apps_Calendar-88c483a0189cbe7132330cb1b563f07326f3bcf9.tar.bz2
android_packages_apps_Calendar-88c483a0189cbe7132330cb1b563f07326f3bcf9.zip
Changes to DeleteEventHelper to make it async
This changes DeleteEventHelper to be able to use a CalendarEventModel when doing deletes and to use all asynchronous calls for creating deletes/inserts/queries. Change-Id: I83fbf1ec0e58ddfc7913b18bf20737bf60c04c47
Diffstat (limited to 'src/com/android/calendar/EditEventActivity.java')
-rw-r--r--src/com/android/calendar/EditEventActivity.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/calendar/EditEventActivity.java b/src/com/android/calendar/EditEventActivity.java
index 9a44a672..0f6f0cf7 100644
--- a/src/com/android/calendar/EditEventActivity.java
+++ b/src/com/android/calendar/EditEventActivity.java
@@ -109,10 +109,10 @@ public class EditEventActivity extends Activity {
return;
}
mOriginalModel = new CalendarEventModel();
- mHelper.setModelFromCursor(mOriginalModel, cursor);
+ EditEventHelper.setModelFromCursor(mOriginalModel, cursor);
mOriginalModel.mUri = mUri;
- mHelper.setModelFromCursor(mModel, cursor);
+ EditEventHelper.setModelFromCursor(mModel, cursor);
mModel.mUri = mUri;
mModel.mOriginalStart = mBegin;
mModel.mOriginalEnd = mEnd;
@@ -398,7 +398,7 @@ public class EditEventActivity extends Activity {
DeleteEventHelper deleteHelper = new DeleteEventHelper(this,
true /* exitWhenDone */);
// TODO update delete helper to use the model instead of the cursor
- deleteHelper.delete(begin, end, mEventCursor, which);
+ deleteHelper.delete(begin, end, mModel, which);
break;
default:
Log.e(TAG, "done: Unrecognized exit code.");