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

Commit 521e7b8d authored by Mindy Pereira's avatar Mindy Pereira
Browse files

Make sure we update the visibility of fields based on all day event or not.

Was just doing this in the case of the user not being able to edit,
but needs to do it when the user can edit as well.

Fixes b/6408966 EditEventActivity shows time zone when opening an all-day event

Change-Id: Ib9cbcdc4b9c3764aa7f10a9ef2f1304da94abb43
parent ef4fc988
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1340,7 +1340,6 @@ public class EditEventView implements View.OnClickListener, DialogInterface.OnCa
            mCalendarStaticGroup.setVisibility(View.VISIBLE);
            mRepeatsSpinner.setEnabled(false);
            mRepeatsSpinner.setBackgroundDrawable(null);
            setAllDayViewsVisibility(mAllDayCheckBox.isChecked());
            if (EditEventHelper.canAddReminders(mModel)) {
                mRemindersGroup.setVisibility(View.VISIBLE);
            } else {
@@ -1387,6 +1386,7 @@ public class EditEventView implements View.OnClickListener, DialogInterface.OnCa
            mLocationGroup.setVisibility(View.VISIBLE);
            mDescriptionGroup.setVisibility(View.VISIBLE);
        }
        setAllDayViewsVisibility(mAllDayCheckBox.isChecked());
    }

    public void setModification(int modifyWhich) {