Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Fixes bug #350 #376

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ public static String getRepeatString(Context context, Resources r, EventRecurren
if(dayNumber == RecurrencePickerDialogFragment.LAST_NTH_DAY_OF_WEEK){
dayNumber = 5;
}
details = mMonthRepeatByDayOfWeekStrs[weekday][dayNumber - 1];
if (dayNumber > 0) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This just prevents the exception - we would have a "monthly > on the same day every month" return a "monthly > on the {n}th {weekday} of the month" string.

details = mMonthRepeatByDayOfWeekStrs[weekday][dayNumber - 1];
}
}
return r.getQuantityString(R.plurals.monthly, interval, interval, details) + endString;
}
Expand Down