OSDN Git Service

Return correct year in DayPickerPagerAdapter.getYearForPosition()
authorAlan Viverette <alanv@google.com>
Fri, 15 May 2015 21:18:44 +0000 (14:18 -0700)
committerAlan Viverette <alanv@google.com>
Fri, 15 May 2015 21:18:44 +0000 (14:18 -0700)
commitbd51b4d0b930f8c64920954f4f9e5033e0001d5e
treecaa1e29d31d86a423c8871c54388948e9b3e51fc
parentafabc217226c11bad46de4eac557f8fe2e15f708
Return correct year in DayPickerPagerAdapter.getYearForPosition()

Previously it wasn't offsetting the position by the min date's month,
so it would be off by a year if the min date wasn't in January. Also
now updates button visibility whenever the ViewPager's range changes.

Bug: 21203303
Change-Id: Id7a41a4fa48843943c744fb0fecd4bebb798cee5
core/java/android/widget/DayPickerPagerAdapter.java
core/java/android/widget/DayPickerView.java