commit | a14567096922f23d6e03c84fc930e3451e7471c2 | [log] [tgz] |
---|---|---|
author | Tony Wickham <twickham@google.com> | Wed Aug 12 16:48:33 2020 -0700 |
committer | Tony Wickham <twickham@google.com> | Wed Aug 12 17:02:53 2020 -0700 |
tree | 6c5dc2187cd904d5e1089b83229f6ad07c5956c8 | |
parent | 9367f98348f9db5b5b6840b8003dd62c037d8be8 [diff] |
Store mHistoricTimes as longs intead of floats The loss of precision was causing us to miscalculate the age of events, and thus not detecting any pause due to denominator = 0. Test: have a device that hasn't been rebooted for a certain amount of time such that SystemClock#uptimeMillis can't be accurately converted to a float, then try to swipe up and hold Fixes: 160568387 Change-Id: Idef112187f34a18feea7e6a0b77258626f9d0ed4