summaryrefslogtreecommitdiffstats
path: root/telephony/java/com/android
diff options
context:
space:
mode:
authorTyler Gunn <tgunn@google.com>2015-06-09 14:34:11 -0700
committerTyler Gunn <tgunn@google.com>2015-06-09 14:34:11 -0700
commitbc6f12ee42f810a68ef4d1e9185d42cd10124d9a (patch)
tree512d0e51045b8956508215ca51863a7c3e7e5e95 /telephony/java/com/android
parentaaf68f216327a8a2adaf72032904b50796b4aea7 (diff)
downloadframeworks_base-bc6f12ee42f810a68ef4d1e9185d42cd10124d9a.zip
frameworks_base-bc6f12ee42f810a68ef4d1e9185d42cd10124d9a.tar.gz
frameworks_base-bc6f12ee42f810a68ef4d1e9185d42cd10124d9a.tar.bz2
Remove use of STATE_AUDIO_ONLY in a comparison.
- Cleanup javadoc to make it more explicit how to use STATE_AUDIO_ONLY. - Use VideoProfile.isAudioOnly() instead of doing == comparison. Bug: 21645094 Change-Id: I5a67290a996f8f338aebab72a4d3cb57f1b1993b
Diffstat (limited to 'telephony/java/com/android')
-rw-r--r--telephony/java/com/android/ims/ImsCallProfile.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/telephony/java/com/android/ims/ImsCallProfile.java b/telephony/java/com/android/ims/ImsCallProfile.java
index 1c69794..b0b95f6 100644
--- a/telephony/java/com/android/ims/ImsCallProfile.java
+++ b/telephony/java/com/android/ims/ImsCallProfile.java
@@ -331,7 +331,7 @@ public class ImsCallProfile implements Parcelable {
videostate = VideoProfile.STATE_AUDIO_ONLY;
break;
}
- if (callProfile.isVideoPaused() && videostate != VideoProfile.STATE_AUDIO_ONLY) {
+ if (callProfile.isVideoPaused() && !VideoProfile.isAudioOnly(videostate)) {
videostate |= VideoProfile.STATE_PAUSED;
} else {
videostate &= ~VideoProfile.STATE_PAUSED;