From b6110c2de0cd7950360aeb2c248a44e4ea5f33f5 Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Fri, 1 Apr 2011 16:15:13 -0700 Subject: Fix dispatcher crash when input monitoring enabled. Also ensure that we actually log assertion failures. Bug: 4203092 Change-Id: I5c14bc41b2255f876858121f5572e2de75cabcc3 --- libs/ui/Input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/ui/Input.cpp') diff --git a/libs/ui/Input.cpp b/libs/ui/Input.cpp index 440ec00..bbe579e 100644 --- a/libs/ui/Input.cpp +++ b/libs/ui/Input.cpp @@ -724,7 +724,7 @@ void VelocityTracker::addMovement(nsecs_t eventTime, BitSet32 idBits, const Posi LOGD(" %d: position (%0.3f, %0.3f), vx=%0.3f, vy=%0.3f, speed=%0.3f", id, positions[index].x, positions[index].y, vx, vy, sqrtf(vx * vx + vy * vy)); } else { - assert(vx == 0 && vy == 0); + LOG_ASSERT(vx == 0 && vy == 0); LOGD(" %d: position (%0.3f, %0.3f), velocity not available", id, positions[index].x, positions[index].y); } -- cgit v1.1