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

Commit 523cc484 authored by Sam Blitzstein's avatar Sam Blitzstein
Browse files

Fix for crashing on rotation with no reminders.

Bug: 8424377
Change-Id: Idcfe8480226b42b100ae3ef6f49dd764f4149801
parent 49bd4841
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -222,8 +222,13 @@ public class EditEventFragment extends Fragment implements EventHandler, OnColor
                                EditEventHelper.REMINDERS_PROJECTION,
                                EditEventHelper.REMINDERS_WHERE /* selection */,
                                remArgs /* selection args */, null /* sort order */);
                    } else {
                        if (mReminders == null) {
                            // mReminders should not be null.
                            mReminders = new ArrayList<ReminderEntry>();
                        } else {
                            Collections.sort(mReminders);
                        }
                        mOriginalModel.mReminders = mReminders;
                        mModel.mReminders =
                                (ArrayList<ReminderEntry>) mReminders.clone();