From 6dab61fec518d3ff34265b1ce1fb8614e2660fee Mon Sep 17 00:00:00 2001 From: wangqi Date: Tue, 10 Apr 2018 15:41:37 -0700 Subject: Add RTT icon to RTT call log. This is for old call log UI. This change also improves scaling for vector drawable icons. Bug: 67596257 Test: manual PiperOrigin-RevId: 192359601 Change-Id: I3322fe08b668f01c1e3a7ce3264c2988e2703aae --- java/com/android/dialer/calldetails/CallDetailsEntryViewHolder.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'java/com/android/dialer/calldetails') diff --git a/java/com/android/dialer/calldetails/CallDetailsEntryViewHolder.java b/java/com/android/dialer/calldetails/CallDetailsEntryViewHolder.java index f50876d50..edf25df99 100644 --- a/java/com/android/dialer/calldetails/CallDetailsEntryViewHolder.java +++ b/java/com/android/dialer/calldetails/CallDetailsEntryViewHolder.java @@ -22,6 +22,7 @@ import android.provider.CallLog.Calls; import android.support.annotation.ColorInt; import android.support.annotation.NonNull; import android.support.v4.content.ContextCompat; +import android.support.v4.os.BuildCompat; import android.support.v7.widget.RecyclerView.ViewHolder; import android.text.TextUtils; import android.view.View; @@ -102,6 +103,9 @@ public class CallDetailsEntryViewHolder extends ViewHolder { (entry.getFeatures() & Calls.FEATURES_HD_CALL) == Calls.FEATURES_HD_CALL); callTypeIcon.setShowWifi( MotorolaUtils.shouldShowWifiIconInCallLog(context, entry.getFeatures())); + if (BuildCompat.isAtLeastP()) { + callTypeIcon.setShowRtt((entry.getFeatures() & Calls.FEATURES_RTT) == Calls.FEATURES_RTT); + } callTypeText.setText( callTypeHelper.getCallTypeText(callType, isVideoCall, isPulledCall, isDuoCall)); -- cgit v1.2.3