1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-25 00:58:50 -05:00

Issue 3875: Add a bit more debug data for swiping.

This commit is contained in:
Andrew Chen 2012-01-03 21:19:33 -08:00
parent fc5ea05e48
commit 11ebc1b262

View File

@ -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 {