From 18e23785eb89a9adfaeb09b636b793921ecdabdd Mon Sep 17 00:00:00 2001 From: linyuh Date: Thu, 4 Jan 2018 13:40:44 -0800 Subject: Add column CAN_REPORT_AS_INVALID_NUMBER to the annotated call log. This column is filled by PhoneLookupDataSource using PhoneLookupInfo#PeopleApiInfo. Bug: 70218437 Test: AnnotatedCallLogDatabaseHelperTest, PhoneLookupDataSourceTest, RowCombinerTest, CoalescedAnnotatedCallLogCursorLoaderTest, PhoneLookupSelectorTest PiperOrigin-RevId: 180839783 Change-Id: I8d5ddb940670724fd4bf6dd6a50dcf408f91da9d --- java/com/android/dialer/calllog/datasources/util/RowCombiner.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'java/com/android/dialer/calllog/datasources/util') diff --git a/java/com/android/dialer/calllog/datasources/util/RowCombiner.java b/java/com/android/dialer/calllog/datasources/util/RowCombiner.java index ebb1ba665..6e33db51e 100644 --- a/java/com/android/dialer/calllog/datasources/util/RowCombiner.java +++ b/java/com/android/dialer/calllog/datasources/util/RowCombiner.java @@ -31,6 +31,13 @@ public class RowCombiner { this.individualRowsSortedByTimestampDesc = individualRowsSortedByTimestampDesc; } + /** Use the most recent value for the specified column. */ + public RowCombiner useMostRecentInt(String columnName) { + combinedRow.put( + columnName, individualRowsSortedByTimestampDesc.get(0).getAsInteger(columnName)); + return this; + } + /** Use the most recent value for the specified column. */ public RowCombiner useMostRecentLong(String columnName) { combinedRow.put(columnName, individualRowsSortedByTimestampDesc.get(0).getAsLong(columnName)); -- cgit v1.2.3