From 11ebc1b262dfd435d264c91c4264503bec53f525 Mon Sep 17 00:00:00 2001 From: Andrew Chen Date: Tue, 3 Jan 2012 21:19:33 -0800 Subject: [PATCH] Issue 3875: Add a bit more debug data for swiping. --- src/com/fsck/k9/activity/K9Activity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/fsck/k9/activity/K9Activity.java b/src/com/fsck/k9/activity/K9Activity.java index 1f45d5fb1..25ad80867 100644 --- a/src/com/fsck/k9/activity/K9Activity.java +++ b/src/com/fsck/k9/activity/K9Activity.java @@ -180,7 +180,8 @@ public class K9Activity extends Activity { final boolean steadyHand = (Math.abs(deltaX / deltaY) > 2); if(K9.DEBUG) { Log.d(K9.LOG_TAG, "Old swipe algorithm: movedAcross=" + movedAcross + " steadyHand=" + steadyHand + " result=" + (movedAcross && steadyHand)); - Log.d(K9.LOG_TAG, String.format("New swipe algorithm: deltaX=%.2f deltaY=%.2f velocity=%.2f (min=%d)", deltaX, deltaY, velocityX, minVelocity)); + final int oldMin = (int)Math.abs(deltaY * 4); + Log.d(K9.LOG_TAG, String.format("New swipe algorithm: deltaX=%.2f deltaY=%.2f velocity=%.2f (min=%d, oldMin=%d)", deltaX, deltaY, velocityX, minVelocity, oldMin)); } try {