OSDN Git Service

Bug fix in Alarm where it was not getting called correctly if the
authorSunny Goyal <sunnygoyal@google.com>
Sat, 27 Aug 2016 22:33:16 +0000 (15:33 -0700)
committerSunny Goyal <sunnygoyal@google.com>
Tue, 30 Aug 2016 18:04:25 +0000 (11:04 -0700)
commita2125e1d102034e1d638b5d1e973b5b77cfe1efd
tree5cfaefa947ad2c86da4d9810341120c126aed79e
parent4a4b49ff3482cbe7f8192807cdc99437810fe518
Bug fix in Alarm where it was not getting called correctly if the
new timeout was set that was smaller than the previously set timeout

> Using uptimeMillis in Alarm to avoid errors due to system time
changes
> Adding an extra check in Wait in case Thread.sleep eats up
all the timeout

Change-Id: Id1fac5e8fdb81a0c3c7a6a5e50586b2a2f180d06
src/com/android/launcher3/Alarm.java
tests/src/com/android/launcher3/util/Wait.java