summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/calldetails
diff options
context:
space:
mode:
authorwangqi <wangqi@google.com>2017-10-31 14:24:51 -0700
committerzachh <zachh@google.com>2017-11-03 04:38:30 +0000
commit008e6fd718d89fde2ca59249613a0534b2828504 (patch)
tree5c33c66b04e939727fd37b9436b70bc443a440df /java/com/android/dialer/calldetails
parent6eec20f5c5a56177f050b1490e2ba198748c0fd4 (diff)
Show HD icon in call logs.
This change removes restriction of showing HD icon only for some Motorola devices. After this change, any devices writing android.provider.CallLog.Calls.FEATURES_HD_CALL into call logs' feature will be able to show HD icon. To be able to write HD features into call logs, both CarrierConfigManager#KEY_DISPLAY_HD_AUDIO_PROPERTY_BOOL and CarrierConfigManager#KEY_IDENTIFY_HIGH_DEFINITION_CALLS_IN_CALL_LOG_BOOL must be enabled. It's part of upstream change to enable HD icon in call logs: https://android-review.googlesource.com/#/q/topic:hd_icon_call_log Bug: 68108125 Test: none PiperOrigin-RevId: 174091763 Change-Id: I17c62153ebbc866c91acdaa7a7fcbd124594772b
Diffstat (limited to 'java/com/android/dialer/calldetails')
-rw-r--r--java/com/android/dialer/calldetails/CallDetailsEntryViewHolder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/com/android/dialer/calldetails/CallDetailsEntryViewHolder.java b/java/com/android/dialer/calldetails/CallDetailsEntryViewHolder.java
index b98dce76a..c65bb9196 100644
--- a/java/com/android/dialer/calldetails/CallDetailsEntryViewHolder.java
+++ b/java/com/android/dialer/calldetails/CallDetailsEntryViewHolder.java
@@ -98,7 +98,8 @@ public class CallDetailsEntryViewHolder extends ViewHolder {
callTypeIcon.clear();
callTypeIcon.add(callType);
callTypeIcon.setShowVideo(isVideoCall);
- callTypeIcon.setShowHd(MotorolaUtils.shouldShowHdIconInCallLog(context, entry.getFeatures()));
+ callTypeIcon.setShowHd(
+ (entry.getFeatures() & Calls.FEATURES_HD_CALL) == Calls.FEATURES_HD_CALL);
callTypeIcon.setShowWifi(
MotorolaUtils.shouldShowWifiIconInCallLog(context, entry.getFeatures()));