From 590000b9ed674e9244d7561f10b214f6b343cb66 Mon Sep 17 00:00:00 2001 From: roldenburg Date: Thu, 22 Jun 2017 13:43:59 -0700 Subject: Only show video call option in the call log when appropriate This fixes two bugs we previously had: 1) If video calling was disabled in Settings, we would still show a video call option in the call log (fixed by checking the setting) 2) If a different app from Dialer inserted a video call into the history, we would incorrectly show a video call button in the call log (fixed by checking the account handle matches the default phone account) PiperOrigin-RevId: 159870114 Change-Id: I19ef6b50db50f9961a486f48996427a1da8f8813 --- .../dialer/app/calllog/calllogcache/CallLogCache.java | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'java/com/android/dialer/app/calllog/calllogcache/CallLogCache.java') diff --git a/java/com/android/dialer/app/calllog/calllogcache/CallLogCache.java b/java/com/android/dialer/app/calllog/calllogcache/CallLogCache.java index 6728dfb38..514fda57f 100644 --- a/java/com/android/dialer/app/calllog/calllogcache/CallLogCache.java +++ b/java/com/android/dialer/app/calllog/calllogcache/CallLogCache.java @@ -59,19 +59,6 @@ public abstract class CallLogCache { */ public abstract boolean isVoicemailNumber(PhoneAccountHandle accountHandle, CharSequence number); - /** - * Returns {@code true} when the current sim supports video calls, regardless of the value in a - * contact's {@link android.provider.ContactsContract.CommonDataKinds.Phone#CARRIER_PRESENCE} - * column. - */ - public boolean isVideoEnabled() { - if (!mHasCheckedForVideoAvailability) { - mVideoAvailability = CallUtil.getVideoCallingAvailability(mContext); - mHasCheckedForVideoAvailability = true; - } - return (mVideoAvailability & CallUtil.VIDEO_CALLING_ENABLED) != 0; - } - /** * Returns {@code true} when the current sim supports checking video calling capabilities via the * {@link android.provider.ContactsContract.CommonDataKinds.Phone#CARRIER_PRESENCE} column. -- cgit v1.2.3