Problem with GetToday
Closed this issue · 2 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1. Instantiate new CalendarView
2. Day number is early in the month (enough so that it also appears in the grey
boxes at the end of the view)
What is the expected output? What do you see instead?
Expected output is that the correct date is circled. What happens is the grey
box for the day number in the next month is circled.
What version of the product are you using? On what operating system?
Windows 7 x64, Android, build target 1.5
Please provide any additional information below.
This is fixed by adding the condition && tmp[week][day].thisMonth to line 135
in CalendarView.java.
It should look like:
// get today
if(tmp[week][day].day == thisDay &&
tmp[week][day].thisMonth)
{
mToday = mCells[week][day];
mDecoration.setBounds(mToday.getBound());
}
Original issue reported on code.google.com by steven.t...@gmail.com
on 1 Aug 2011 at 3:23
GoogleCodeExporter commented
accepted
Original comment by outlooks...@gmail.com
on 16 Aug 2011 at 5:45
- Changed state: Accepted
GoogleCodeExporter commented
Thanks steven. fixed in v0.4.0
Original comment by outlooks...@gmail.com
on 19 Aug 2011 at 5:57
- Changed state: Fixed