OSDN Git Service

DatePicker is picking the wrong date
authorSvetoslav Ganov <svetoslavganov@google.com>
Mon, 24 Jan 2011 10:13:36 +0000 (02:13 -0800)
committerSvetoslav Ganov <svetoslavganov@google.com>
Mon, 24 Jan 2011 13:21:32 +0000 (05:21 -0800)
commit156f20919b3d5f298f8851215adbf65f8b4dc61b
tree6a39f9a3388a143ef7ca603453550057e30b7ba9
parenta6ce081970a78233ba6b9792149ee5f1390cba7b
DatePicker is picking the wrong date

    bug:3375074

    1. The logic for updating the higher rank fields on wrapping of
       lower rank ones was incorrect. Updated that logic.

    2. On reaching the min/max date the spinners did not stop
       when reaching that date. Now spinners stop at min/max.

    3. Fixed a couple of edge case bugs while setting the
       the min and max dates of the DatePicker on the fly.

    4. Restricted the scrolling/flinging to end at the min
       and max dates.

Change-Id: Ibb588ea2cf951cf8d50328bbfbe7ebdad7ee8067
core/java/android/widget/CalendarView.java
core/java/android/widget/DatePicker.java
core/java/android/widget/NumberPicker.java