Android-Week-View icon indicating copy to clipboard operation
Android-Week-View copied to clipboard

How to make event text not repeated?

Open majdalden opened this issue 7 years ago • 4 comments

How do I make the event text not repeated with that text only one word ???

https://image.ibb.co/gg6HrU/Screen_Shot_2018_08_11_at_12_15_14_AM.png

majdalden avatar Aug 10 '18 21:08 majdalden

i have the same issue

ghost avatar Jan 26 '19 12:01 ghost

The same for me

manu8170 avatar Feb 20 '19 15:02 manu8170

Update: I found the problem and it was in my code. More precisely on my MonthLoader.MonthChangeListener. WeekView.getMoreEvents gets the events for 3 months (the current + the previous + the next). My MonthChangeListener was too simple (I built an app for a test only) and didn't check my single event (starting at current time - 2 hours and ending at current time + 2 days) was in the newMonth passed as a parameter to MonthChangeListener.onMonthChange. The same event was returned for the previous, current and next month. So there were 3 distinct events in fact with the same title and the same rendering color, giving the illusion there was only one task with a title repeated 3 times. Hope it helps.

manu8170 avatar Feb 20 '19 17:02 manu8170

hey guys just use evenmatches method if (eventMatches(event, newYear, newMonth)) { events.add(event); } you will get that method from example file in this source code. file name asycnoractivity.java

josephvijayandroiddev avatar Nov 21 '19 11:11 josephvijayandroiddev