diff options
author | Tyler Gunn <tgunn@google.com> | 2014-07-10 12:28:43 -0700 |
---|---|---|
committer | Tyler Gunn <tgunn@google.com> | 2014-07-10 12:28:43 -0700 |
commit | 8b0e858d5b4c50813dbe2b5c244e7013814b23ec (patch) | |
tree | e17124adb6cfd3f4e70595baf4f66d847292bc1d /src/com/android/dialer/CallDetailActivity.java | |
parent | 70d301e1239c9324c071c10888bf6d7b0b48ddaa (diff) |
Adding support for video call icon and data usage in call log.
Bug: 16013684
Bug: 16015261
Change-Id: Ie75443d641c1e09a5772bb618aba55de8583716b
Diffstat (limited to 'src/com/android/dialer/CallDetailActivity.java')
-rw-r--r-- | src/com/android/dialer/CallDetailActivity.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/com/android/dialer/CallDetailActivity.java b/src/com/android/dialer/CallDetailActivity.java index fa8d5ed28..3ef78af5c 100644 --- a/src/com/android/dialer/CallDetailActivity.java +++ b/src/com/android/dialer/CallDetailActivity.java @@ -50,6 +50,7 @@ import com.android.contacts.common.CallUtil; import com.android.contacts.common.ContactPhotoManager.DefaultImageRequest; import com.android.contacts.common.GeoUtil; import com.android.dialer.calllog.CallDetailHistoryAdapter; +import com.android.dialer.calllog.CallLogQuery; import com.android.dialer.calllog.CallTypeHelper; import com.android.dialer.calllog.ContactInfo; import com.android.dialer.calllog.ContactInfoHelper; @@ -197,6 +198,8 @@ public class CallDetailActivity extends Activity implements ProximitySensorAware CallLog.Calls.NUMBER_PRESENTATION, CallLog.Calls.PHONE_ACCOUNT_COMPONENT_NAME, CallLog.Calls.PHONE_ACCOUNT_ID, + CallLog.Calls.FEATURES, + CallLog.Calls.DATA_USAGE }; static final int DATE_COLUMN_INDEX = 0; @@ -208,6 +211,8 @@ public class CallDetailActivity extends Activity implements ProximitySensorAware static final int NUMBER_PRESENTATION_COLUMN_INDEX = 6; static final int ACCOUNT_COMPONENT_NAME = 7; static final int ACCOUNT_ID = 8; + static final int FEATURES = 9; + static final int DATA_USAGE = 10; @Override protected void onCreate(Bundle icicle) { @@ -525,11 +530,16 @@ public class CallDetailActivity extends Activity implements ProximitySensorAware lookupUri = info.lookupUri; sourceType = info.sourceType; } + final int features = callCursor.getInt(FEATURES); + Long dataUsage = null; + if (!callCursor.isNull(DATA_USAGE)) { + dataUsage = callCursor.getLong(DATA_USAGE); + } return new PhoneCallDetails(number, numberPresentation, formattedNumber, countryIso, geocode, new int[]{ callType }, date, duration, nameText, numberType, numberLabel, lookupUri, photoUri, sourceType, - accountIcon); + accountIcon, features, dataUsage); } finally { if (callCursor != null) { callCursor.close(); |