From 21f7f75c93be6ee9719ca57bdaa3a7de7e8d1b23 Mon Sep 17 00:00:00 2001 From: Eugene Crosser Date: Sat, 4 Feb 2012 01:30:55 +0400 Subject: [PATCH] add logging to SayWhen --- src/org/average/whereami/SayWhen.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/average/whereami/SayWhen.java b/src/org/average/whereami/SayWhen.java index 21196ff..154727e 100644 --- a/src/org/average/whereami/SayWhen.java +++ b/src/org/average/whereami/SayWhen.java @@ -6,6 +6,8 @@ import android.util.Log; public class SayWhen { + final String TAG = getClass().getName(); + private String s_at; private String yesterday; @@ -22,6 +24,8 @@ public class SayWhen { twhen.set(when); Boolean datechange = tnow.monthDay != twhen.monthDay; Long hoursago = (System.currentTimeMillis() - when) / 3600000; + Log.v(TAG, "datechange=" + datechange + + " hoursago=" + hoursago); if (hoursago > 24) { return s_at + twhen.format(" %H:%M %d/%m/%Y"); } else if ((tnow.hour > 4 || hoursago > 12) && datechange) { -- 2.43.0