summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/calllog/database/contract/AnnotatedCallLogContract.java
diff options
context:
space:
mode:
authorlinyuh <linyuh@google.com>2017-12-08 10:22:52 -0800
committerCopybara-Service <copybara-piper@google.com>2017-12-08 10:23:48 -0800
commitafb1d0fa6c9421a8a26c8ad9c5630a3f6f34a8f0 (patch)
tree913c4b07fffd2b9eb99ff1f530e050be3471f8f3 /java/com/android/dialer/calllog/database/contract/AnnotatedCallLogContract.java
parentc9d21e15e6bd69496b6de3a1e4168d96d0132975 (diff)
In the coalesced call log, replace column NUMBER_CALLS with a new column COALESCED_IDS.
For a row in the coalesced call log, COALESCED_IDS contains IDs of the corresponding rows in the annotated call log. These IDs will be used to (1) launch CallDetailsActivity or (2) delete the row in the call log UI. Bug: 70218437 Test: CoalescerTest, CoalescedAnnotatedCallLogCursorLoaderTest PiperOrigin-RevId: 178392968 Change-Id: I2d6cd46bec4d47a9e18941b7a019f39403fa76f5
Diffstat (limited to 'java/com/android/dialer/calllog/database/contract/AnnotatedCallLogContract.java')
-rw-r--r--java/com/android/dialer/calllog/database/contract/AnnotatedCallLogContract.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/java/com/android/dialer/calllog/database/contract/AnnotatedCallLogContract.java b/java/com/android/dialer/calllog/database/contract/AnnotatedCallLogContract.java
index 9efe21487..c9c053cea 100644
--- a/java/com/android/dialer/calllog/database/contract/AnnotatedCallLogContract.java
+++ b/java/com/android/dialer/calllog/database/contract/AnnotatedCallLogContract.java
@@ -274,17 +274,18 @@ public class AnnotatedCallLogContract {
"vnd.android.cursor.item/coalesced_annotated_call_log";
/**
- * Number of AnnotatedCallLog rows represented by this CoalescedAnnotatedCallLog row.
+ * IDs of rows in {@link AnnotatedCallLog} that are coalesced into one row in {@link
+ * CoalescedAnnotatedCallLog}, encoded as a {@link com.android.dialer.CoalescedIds} proto.
*
- * <p>Type: INTEGER
+ * <p>Type: BLOB
*/
- public static final String NUMBER_CALLS = "number_calls";
+ public static final String COALESCED_IDS = "coalesced_ids";
/**
* Columns that are only in the {@link CoalescedAnnotatedCallLog} but not the {@link
* AnnotatedCallLog}.
*/
- private static final String[] COLUMNS_ONLY_IN_COALESCED_CALL_LOG = new String[] {NUMBER_CALLS};
+ private static final String[] COLUMNS_ONLY_IN_COALESCED_CALL_LOG = new String[] {COALESCED_IDS};
/** All columns in the {@link CoalescedAnnotatedCallLog}. */
public static final String[] ALL_COLUMNS =