jrnguyen1412 / android-calendar-view

Automatically exported from code.google.com/p/android-calendar-view
0 stars 0 forks source link

Problem with GetToday #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 9 years ago
accepted

Original comment by outlooks...@gmail.com on 16 Aug 2011 at 5:45

GoogleCodeExporter commented 9 years ago
Thanks steven. fixed in v0.4.0

Original comment by outlooks...@gmail.com on 19 Aug 2011 at 5:57