Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a2a13d9e authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "fix long overflow when enable DEBUG_ACCELERATION" am: 0bd3275a am:...

Merge "fix long overflow when enable DEBUG_ACCELERATION" am: 0bd3275a am: 4fbb9e00 am: 5d855b9b

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1802131

Change-Id: I9dd4287e6d2c3f869a04328d488de3c30289f398
parents 99021402 5d855b9b
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -53,8 +53,10 @@ void VelocityControl::move(nsecs_t eventTime, float* deltaX, float* deltaY) {
    if ((deltaX && *deltaX) || (deltaY && *deltaY)) {
        if (eventTime >= mLastMovementTime + STOP_TIME) {
#if DEBUG_ACCELERATION
	    if (mLastMovementTime != LLONG_MIN) {
	        ALOGD("VelocityControl: stopped, last movement was %0.3fms ago",
                       (eventTime - mLastMovementTime) * 0.000001f);
	    }
#endif
            reset();
        }