From 4ceafab5f9a2d7bf599ed90d9e6cec9a383f088e Mon Sep 17 00:00:00 2001 From: erfanian Date: Tue, 2 Jan 2018 14:18:05 -0800 Subject: Add assisted dialing indicators to the old call log. Modify the call log grouping strategy. The strategy is as follows: When comparing the current group to the next candidate to add to that group, if the assisted dialing feature tag differs between the two, create a new group. Thus, if a call has other features like wifi or hd, we ignore those features when making grouping decisions. Bug: 70506228 Test: unit tests PiperOrigin-RevId: 180592125 Change-Id: I73d130bd9eb23706a04cb02f5711200729d978b6 --- java/com/android/dialer/app/calllog/PhoneCallDetailsHelper.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'java/com/android/dialer/app/calllog/PhoneCallDetailsHelper.java') diff --git a/java/com/android/dialer/app/calllog/PhoneCallDetailsHelper.java b/java/com/android/dialer/app/calllog/PhoneCallDetailsHelper.java index fa1f7ab2c..e23d92c2e 100644 --- a/java/com/android/dialer/app/calllog/PhoneCallDetailsHelper.java +++ b/java/com/android/dialer/app/calllog/PhoneCallDetailsHelper.java @@ -37,6 +37,7 @@ import com.android.dialer.app.calllog.calllogcache.CallLogCache; import com.android.dialer.calllogutils.PhoneCallDetails; import com.android.dialer.common.LogUtil; import com.android.dialer.compat.android.provider.VoicemailCompat; +import com.android.dialer.compat.telephony.TelephonyManagerCompat; import com.android.dialer.logging.ContactSource; import com.android.dialer.oem.MotorolaUtils; import com.android.dialer.phonenumberutil.PhoneNumberHelper; @@ -101,6 +102,9 @@ public class PhoneCallDetailsHelper (details.features & Calls.FEATURES_HD_CALL) == Calls.FEATURES_HD_CALL); views.callTypeIcons.setShowWifi( MotorolaUtils.shouldShowWifiIconInCallLog(context, details.features)); + views.callTypeIcons.setShowAssistedDialed( + (details.features & TelephonyManagerCompat.FEATURES_ASSISTED_DIALING) + == TelephonyManagerCompat.FEATURES_ASSISTED_DIALING); views.callTypeIcons.requestLayout(); views.callTypeIcons.setVisibility(View.VISIBLE); -- cgit v1.2.3