From ac7f2354a58bac2099b6a9442f6c8388fcf1c148 Mon Sep 17 00:00:00 2001 From: Tyler Gunn Date: Fri, 22 Aug 2014 14:35:44 -0700 Subject: Hiding VideoCall button in call log when video is not available. Bug: 17179079 Change-Id: Ice1cc4b83dd740b751414075b0ea96fb2ab201b3 --- src/com/android/dialer/calllog/CallLogAdapter.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/com/android/dialer') diff --git a/src/com/android/dialer/calllog/CallLogAdapter.java b/src/com/android/dialer/calllog/CallLogAdapter.java index e009ddafb..2d4c1222a 100644 --- a/src/com/android/dialer/calllog/CallLogAdapter.java +++ b/src/com/android/dialer/calllog/CallLogAdapter.java @@ -41,6 +41,7 @@ import android.widget.TextView; import android.widget.Toast; import com.android.common.widget.GroupingListAdapter; +import com.android.contacts.common.CallUtil; import com.android.contacts.common.ContactPhotoManager; import com.android.contacts.common.ContactPhotoManager.DefaultImageRequest; import com.android.contacts.common.util.UriUtils; @@ -993,7 +994,8 @@ public class CallLogAdapter extends GroupingListAdapter } // If one of the calls had video capabilities, show the video call button. - if (canPlaceCallToNumber && views.phoneCallDetailsViews.callTypeIcons.isVideoShown()) { + if (CallUtil.isVideoEnabled(mContext) && canPlaceCallToNumber && + views.phoneCallDetailsViews.callTypeIcons.isVideoShown()) { views.videoCallButtonView.setTag( IntentProvider.getReturnVideoCallIntentProvider(views.number)); views.videoCallButtonView.setVisibility(View.VISIBLE); -- cgit v1.2.3