diff options
author | Tyler Gunn <tgunn@google.com> | 2014-08-22 14:35:44 -0700 |
---|---|---|
committer | Tyler Gunn <tgunn@google.com> | 2014-08-22 14:35:44 -0700 |
commit | ac7f2354a58bac2099b6a9442f6c8388fcf1c148 (patch) | |
tree | a8f3258d4dcd57a88de06798f008af8b3f4b8ca7 /src/com/android/dialer | |
parent | 6fc974f2e8cb2bb1e084acc54dca149b6d191c6b (diff) |
Hiding VideoCall button in call log when video is not available.
Bug: 17179079
Change-Id: Ice1cc4b83dd740b751414075b0ea96fb2ab201b3
Diffstat (limited to 'src/com/android/dialer')
-rw-r--r-- | src/com/android/dialer/calllog/CallLogAdapter.java | 4 |
1 files changed, 3 insertions, 1 deletions
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); |