Closed GXSZone closed 3 years ago
Store the builder object in its own variable.
Recurrence.Builder builder = new Recurrence.Builder(Frequency.DAILY).interval(mRepeatEntity.getFreqInterval());
switch (mRepeatEntity.getFinishUnit()) {
case TodoConst.FINISH_DATE:
builder.until(...);
break;
}
Thinks
I need to dynamically set
count()
,until()
orinterval()
according to the user's choice For example, according to the user's choice of end date or until when This kind of chain writing cannot be applied