diff options
| author | 2011-04-01 16:15:13 -0700 | |
|---|---|---|
| committer | 2011-04-01 16:15:13 -0700 | |
| commit | b6110c2de0cd7950360aeb2c248a44e4ea5f33f5 (patch) | |
| tree | 40a28f204c6910b123ffb5a001c1f8673223d330 /libs/ui/Input.cpp | |
| parent | bc2278b95f4012d81918b0faedea36011f122a33 (diff) | |
Fix dispatcher crash when input monitoring enabled.
Also ensure that we actually log assertion failures.
Bug: 4203092
Change-Id: I5c14bc41b2255f876858121f5572e2de75cabcc3
Diffstat (limited to 'libs/ui/Input.cpp')
| -rw-r--r-- | libs/ui/Input.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ui/Input.cpp b/libs/ui/Input.cpp index 440ec00e378d..bbe579ea83f2 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); } |