summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/calllog/datasources/contacts/ContactsDataSource.java
diff options
context:
space:
mode:
authorzachh <zachh@google.com>2017-08-25 12:19:07 -0700
committerEric Erfanian <erfanian@google.com>2017-08-30 16:26:55 -0700
commit51f2b28ae6a45f57f94e5c9a66081a10aebc8349 (patch)
tree51f16d3431b9e7aeeed3719303b00fca20cb7d88 /java/com/android/dialer/calllog/datasources/contacts/ContactsDataSource.java
parent73f450c63cae19c7e0404fcddbc8db55a1aa5fba (diff)
Added partial UI to new call log.
UI notes: -Updated view holder to show number and basic secondary text -Updated adapter to divide "Today" and "Older" entries -Photo is just an anonymous avatar for now -Clicking anywhere is a no-op Other things done in this CL: -Plumbed a few more columns through the call log framework -Tweaked some column names in the data model (contract) -Cleaned up some existing tests and added some new ones Screenshot: https://screenshot.googleplex.com/DiMscW47AYb This is the complete spec I am working from: https://screenshot.googleplex.com/XLquTek1oHk Bug: 34672501 Test: existing and new Change-Id: Ice0e538e23e59b7d752f47125a5f9da96bf91430 PiperOrigin-RevId: 166508997
Diffstat (limited to 'java/com/android/dialer/calllog/datasources/contacts/ContactsDataSource.java')
-rw-r--r--java/com/android/dialer/calllog/datasources/contacts/ContactsDataSource.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/com/android/dialer/calllog/datasources/contacts/ContactsDataSource.java b/java/com/android/dialer/calllog/datasources/contacts/ContactsDataSource.java
index ad824274e..8090cbc62 100644
--- a/java/com/android/dialer/calllog/datasources/contacts/ContactsDataSource.java
+++ b/java/com/android/dialer/calllog/datasources/contacts/ContactsDataSource.java
@@ -51,7 +51,7 @@ public final class ContactsDataSource implements CallLogDataSource {
Assert.isWorkerThread();
// TODO(zachh): Implementation.
for (ContentValues contentValues : mutations.getInserts().values()) {
- contentValues.put(AnnotatedCallLog.PRIMARY_TEXT, "Placeholder name");
+ contentValues.put(AnnotatedCallLog.NAME, "Placeholder name");
}
}
@@ -64,7 +64,7 @@ public final class ContactsDataSource implements CallLogDataSource {
public ContentValues coalesce(List<ContentValues> individualRowsSortedByTimestampDesc) {
// TODO(zachh): Implementation.
return new RowCombiner(individualRowsSortedByTimestampDesc)
- .useSingleValueString(AnnotatedCallLog.PRIMARY_TEXT)
+ .useSingleValueString(AnnotatedCallLog.NAME)
.combine();
}