Correcting issue where 1-way video calls do not log as video in call log.
The root of the issue is that the video state check in CallLogManager
was incorrect. Corrected to use the VideoState#isVideo() method which
checks if TX or RX is active for a video state.
Bug: 20066023
Change-Id: Ia1c0648dea7469c91855642c2c68b1b32d3827b1
diff --git a/src/com/android/server/telecom/CallLogManager.java b/src/com/android/server/telecom/CallLogManager.java
index 781f2b1..fc58fd6 100755
--- a/src/com/android/server/telecom/CallLogManager.java
+++ b/src/com/android/server/telecom/CallLogManager.java
@@ -202,8 +202,7 @@
* @return The call features.
*/
private static int getCallFeatures(int videoState) {
- if ((videoState & VideoProfile.VideoState.TX_ENABLED)
- == VideoProfile.VideoState.TX_ENABLED) {
+ if (VideoProfile.VideoState.isVideo(videoState)) {
return Calls.FEATURES_VIDEO;
}
return 0;