OSDN Git Service

Use Calendar.add() instead of Calendar.roll()
authorLeon Scroggins <scroggo@google.com>
Thu, 7 Jan 2010 23:47:06 +0000 (18:47 -0500)
committerLeon Scroggins <scroggo@google.com>
Fri, 8 Jan 2010 14:18:37 +0000 (09:18 -0500)
commitc89b13b962c6634db536e563a42d058702ce045b
treefc37c9e36c7a03c9d68bebe39c5b77b188e1a1c8
parentaffa5d2c0f7c2ade43ded5ff9a7952b269183117
Use Calendar.add() instead of Calendar.roll()

Calendar.roll() breaks the year at the beginning of the year, so
use add() instead, which changes larger fields.

Also, only use 4 bins, since the last bin's boundary is not relevant.

Lastly, no need to return Calendar in beginningOfDay.

Fixes http://b/issue?id=2361382
core/java/android/webkit/DateSorter.java