Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 429456c3 authored by Jonas Häusler's avatar Jonas Häusler Committed by Michael Bestas
Browse files

add documentation regarding moving recurrences

Change-Id: Idd8fc81a4572ad28436f0733c02a5d10404d3e53
parent f560fd73
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -756,11 +756,14 @@ public class EditEventFragment extends Fragment implements EventHandler, OnColor
                    final String[] selectionArgs;
                    final boolean isRecurring = !TextUtils.isEmpty(mModel.mRrule);
                    if (isRecurring && Build.VERSION.SDK_INT < Build.VERSION_CODES.R) {
                        // recurring event AND api level < 30. disable changing calendars.
                        // recurring event AND api level < 30. disable changing calendars as moving
                        // recurrences is currently only possible for api level 30+
                        selection = EditEventHelper.CALENDARS_WHERE;
                        selectionArgs = new String[] { Long.toString(mModel.mCalendarId) };
                    } else if (isRecurring) {
                        // recurring event AND api level >= 30. enable changing calendars to synced calendars.
                        // recurring event AND api level >= 30. enable changing calendars to synced
                        // calendars only, as we currently don't allow recurrence exceptions in local calendars
                        // and would lose them when moving the recurrence between calendars
                        selection = EditEventHelper.CALENDARS_WHERE_SYNCED_WRITEABLE_VISIBLE;
                        selectionArgs = null;
                    } else {