roomorama / Caldroid

A better calendar for Android
Other
1.42k stars 532 forks source link

Cells are not getting the right state in 3.x #403

Open luccasclezar opened 8 years ago

luccasclezar commented 8 years ago

Hello,

I was testing caldroid with its latest version and I found a bug. When the view loads for the first time, it gets the states correctly, but once I change some day's background (with setBackgroundDrawableForDate method) to a color, and set it back to a selector, it gets colored as if it were from the last month (but only if the day is from a row that have days from the other month).

After trying many solutions without getting it right, I rolled back to other versions of Caldroid, beggining with 3.0.0, and had no luck, then, when I rolled back to 2.3.1 and changed the "setBackgroundDrawableForDate" method to "setBackgroundResourceForDate", it worked as expected.

I don't have the technical skills to look into this, if someone could explain if this is really an error or not, I would be grateful.