diff options
author | Erica Chang <echang@cyngn.com> | 2016-06-29 18:43:04 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-07-07 17:50:22 -0700 |
commit | 210d936e8daa2eac4a34bd64e2d35a925c936ab2 (patch) | |
tree | 550e40eb3de5ae8a21171e2a306dfb53c55752e3 | |
parent | 8f7590c9e728218abd488912c8665b860c568e8a (diff) | |
download | packages_apps_Contacts-210d936e8daa2eac4a34bd64e2d35a925c936ab2.tar.gz packages_apps_Contacts-210d936e8daa2eac4a34bd64e2d35a925c936ab2.tar.bz2 packages_apps_Contacts-210d936e8daa2eac4a34bd64e2d35a925c936ab2.zip |
Contacts metrics: corrected parsed timestamp values
ContentValues.getAsInt does not parse timestamp values (overflow and returns null)
. Need to use ContentValues.getAsLong.
CD-501
Change-Id: I9fdda6b18228cf1cc6ba27feae6743afa5f03052
(cherry picked from commit 6ecb91ad173ec8a3269f1b263e70d13079b088f5)
-rw-r--r-- | src/com/android/contacts/incall/InCallMetricsHelper.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/android/contacts/incall/InCallMetricsHelper.java b/src/com/android/contacts/incall/InCallMetricsHelper.java index 501c53fa0..d5b68d092 100644 --- a/src/com/android/contacts/incall/InCallMetricsHelper.java +++ b/src/com/android/contacts/incall/InCallMetricsHelper.java @@ -252,7 +252,7 @@ public class InCallMetricsHelper { map.put(Parameters.COUNT, cv.getAsInteger(Parameters.COUNT.toCol())); map.put(Parameters.NUDGE_ID, cv.getAsString(Parameters.NUDGE_ID.toCol())); map.put(Parameters.EVENT_ACCEPTANCE_TIME, - cv.getAsInteger(Parameters.EVENT_ACCEPTANCE_TIME.toCol())); + cv.getAsLong(Parameters.EVENT_ACCEPTANCE_TIME.toCol())); map.put(Parameters.EVENT_ACCEPTANCE, cv.getAsInteger(Parameters.EVENT_ACCEPTANCE.toCol()) == 0 ? Boolean.FALSE : Boolean.TRUE); @@ -275,6 +275,9 @@ public class InCallMetricsHelper { default: break; } + if (DEBUG) { + Log.d(TAG, event.value() + ": " + map.toString()); + } return map; } |