diff options
author | wangqi <wangqi@google.com> | 2018-04-10 15:41:37 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-04-10 16:43:45 -0700 |
commit | 6dab61fec518d3ff34265b1ce1fb8614e2660fee (patch) | |
tree | 2d3de02308322f13d9217009ae86e258a1f7261b /java/com/android/dialer/calldetails | |
parent | 3b995bac4550982c62f805d7c334fbc7ed34b113 (diff) | |
download | android_packages_apps_Dialer-6dab61fec518d3ff34265b1ce1fb8614e2660fee.tar.gz android_packages_apps_Dialer-6dab61fec518d3ff34265b1ce1fb8614e2660fee.tar.bz2 android_packages_apps_Dialer-6dab61fec518d3ff34265b1ce1fb8614e2660fee.zip |
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
Diffstat (limited to 'java/com/android/dialer/calldetails')
-rw-r--r-- | java/com/android/dialer/calldetails/CallDetailsEntryViewHolder.java | 4 |
1 files changed, 4 insertions, 0 deletions
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)); |