summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/calendar/AllInOneActivity.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/calendar/AllInOneActivity.java b/src/com/android/calendar/AllInOneActivity.java
index 66394591..48613706 100644
--- a/src/com/android/calendar/AllInOneActivity.java
+++ b/src/com/android/calendar/AllInOneActivity.java
@@ -471,6 +471,9 @@ public class AllInOneActivity extends AbstractCalendarActivity implements EventH
prefs.registerOnSharedPreferenceChangeListener(this);
mContentResolver = getContentResolver();
+ if (getResources().getBoolean(R.bool.show_delete_events_menu)) {
+ getLoaderManager().initLoader(0, null, this);
+ }
}
private long parseViewAction(final Intent intent) {
@@ -595,6 +598,9 @@ public class AllInOneActivity extends AbstractCalendarActivity implements EventH
invalidateOptionsMenu();
mCalIntentReceiver = Utils.setTimeChangesReceiver(this, mTimeChangesUpdater);
+ if (getResources().getBoolean(R.bool.show_delete_events_menu)) {
+ getLoaderManager().initLoader(0, null, this);
+ }
}
@Override