commit | 467b64fb79f8720958bba6dff84d4827458d33e2 | [log] [tgz] |
---|---|---|
author | Tyler Gunn <tgunn@google.com> | Tue Jun 09 13:48:47 2015 -0700 |
committer | Tyler Gunn <tgunn@google.com> | Tue Jun 09 13:48:47 2015 -0700 |
tree | 51ec733c0406899a5de864caa48e9ea4dbeddcb3 | |
parent | 8418e679c597f02c3863b9fcce6c847cf410b86d [diff] [blame] |
Remove use of STATE_AUDIO_ONLY in a comparison. - Use VideoProfile.isAudioOnly() instead of doing == comparison. Bug: 21645094 Change-Id: Iee12001e2a56dfdf8239ad04f844593a21da896d
diff --git a/src/com/android/server/telecom/CallsManager.java b/src/com/android/server/telecom/CallsManager.java index cd56a90..402875c 100644 --- a/src/com/android/server/telecom/CallsManager.java +++ b/src/com/android/server/telecom/CallsManager.java
@@ -399,7 +399,7 @@ boolean hasVideoCall() { for (Call call : mCalls) { - if (call.getVideoState() != VideoProfile.STATE_AUDIO_ONLY) { + if (VideoProfile.isVideo(call.getVideoState())) { return true; } }