commit | be766f5c8c19ba897e09b1d174c2b4cbf44ccac9 | [log] [tgz] |
---|---|---|
author | Paul Soulos <psoulos@google.com> | Wed Jun 25 14:14:20 2014 -0700 |
committer | Paul Soulos <psoulos@google.com> | Wed Jun 25 21:30:39 2014 +0000 |
tree | d7f5821736f52f70c740052c5ba1901bc997d796 | |
parent | d3a9344d57a05ad626849a98c6a6cfd1a29935c5 [diff] |
Adds retrieving a raw contact id from a data item. Change-Id: I956a53211719cfaa85ce3cd18ee15616eb571a97
diff --git a/src/com/android/contacts/common/model/dataitem/DataItem.java b/src/com/android/contacts/common/model/dataitem/DataItem.java index 5115365..26d5a9f 100644 --- a/src/com/android/contacts/common/model/dataitem/DataItem.java +++ b/src/com/android/contacts/common/model/dataitem/DataItem.java
@@ -99,6 +99,10 @@ mContentValues.put(Data.RAW_CONTACT_ID, rawContactId); } + public Long getRawContactId() { + return mContentValues.getAsLong(Data.RAW_CONTACT_ID); + } + /** * Returns the data id. */