You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
private fun setCalendarEvents(year: Int, month: Int, day: Int) {
val currentDateCalendar = Calendar.getInstance()
val calendarInstance = Calendar.getInstance()
calendarInstance.set(year, month, day)
val timeDifference =
calendarInstance.get(Calendar.DAY_OF_MONTH) - currentDateCalendar.get(Calendar.DAY_OF_MONTH)
val eventCalendar = Calendar.getInstance()
eventCalendar.add(Calendar.DAY_OF_MONTH, timeDifference)
//calendarLib is the reference of EventsCalendar
calendarLib.addEvent(eventCalendar)
}
These are the code I am trying to use with no success.
I try "setCalendarEvents" this function outside the API call functions and it works fine the dots is shows as it should be.
Please assist.
And thank you in advance.
The text was updated successfully, but these errors were encountered:
I am using your library within an API call that returns all of my events during a specific month.
The API call takes place in the background and if I add the events there red dots will not show, even if use runOnUIThread{}.
Here is a peace of my code to show my issue.
These are the code I am trying to use with no success.
I try "setCalendarEvents" this function outside the API call functions and it works fine the dots is shows as it should be.
Please assist.
And thank you in advance.
The text was updated successfully, but these errors were encountered: