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
After further investigation I came to conclusion that date.DaysAfter(firstDate.time) is returning wrong value if date and firstDate.time are the same. Essentially it means that when you select date when view is inflated(like me) you'll get wrong DayView selected. Solution for that is setting date and firstDate.time fields MINUTE and HOUR to 0, and adding 1 to the return value of daysAfter func
The text was updated successfully, but these errors were encountered:
Thanks a lot for the issue and further investigations! We are now working on enhancements and bug-fixes including this in our private repository. The next version will be soon released.
While developing the release version 1.0.1, we have tested calling the same method in the same situation, but the problem could not be reproduced. This issue may be somehow solved in Release 1.0.1. Could you confirm if the same problem occurs with the latest library version?
@recruit-mahayash Yep it works well in new release, the issue that I explained was really weird, it actually fixed itself by mistake, it was probably unreproducable because it was caused by my other changes in code.
As title says,
Logcat
// first invocation
D/DayLayout: setSelectedDay Mon Jan 02 12:55:21 GMT 2017
D/DayLayout: setSelectedDay2 DayView(Sun Jan 01 12:55:21 GMT 2017)
//2nd invocation
D/DayLayout: setSelectedDay Mon Jan 02 12:55:21 GMT 2017
D/DayLayout: setSelectedDay2 DayView(Mon Jan 02 12:55:21 GMT 2017)
DayLayout.kt
Edit:
After further investigation I came to conclusion that date.DaysAfter(firstDate.time) is returning wrong value if date and firstDate.time are the same. Essentially it means that when you select date when view is inflated(like me) you'll get wrong DayView selected. Solution for that is setting date and firstDate.time fields MINUTE and HOUR to 0, and adding 1 to the return value of daysAfter func
The text was updated successfully, but these errors were encountered: