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>
Fri, 2 Sep 2016 18:28:20 +0000 (18:28 +0000)
commit6f2bb1ada5a68da74ad29d135fa32ec45b234dba
treee7f1e5c931cf7c5f9fac07ff88af32d58b0bbe51
parentdef6e474dad311224b97ae66f62c3313c6542955
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
(cherry picked from commit a2125e1d102034e1d638b5d1e973b5b77cfe1efd)
src/com/android/launcher3/Alarm.java
tests/src/com/android/launcher3/util/Wait.java