OSDN Git Service

Fix http://b/2352067 .
authorDaniel Sandler <dsandler@google.com>
Mon, 4 Jan 2010 22:14:28 +0000 (16:14 -0600)
committerDaniel Sandler <dsandler@google.com>
Tue, 5 Jan 2010 19:46:27 +0000 (14:46 -0500)
commit01d49d700e55c3c32b8b1bc2c816be6cc76e6409
tree8f576167547291fdea94bea27bd265aafd608db3
parent31e5ba9c7f1205ce4413619752e1ad9e33c51ce1
Fix http://b/2352067 .

Time.month ranges over 0..11, not 1..12. Fixed code to deal
properly with this.

Additionally, months with 31 days will crash. Fixed that too.

While we're at it, fix http://b/2354796 (the seconds arc
wasn't synchronized with wall-clock seconds).

Finally, added a bit of additional crash defense in case of
other exceptional situations (e.g. leap seconds, API bugs,
solar flares...)

Change-Id: If42c8fd408cf6619a16541a9661b39e33c5d47a5
src/com/android/wallpaper/polarclock/PolarClockWallpaper.java