Merge "Remove use of STATE_AUDIO_ONLY in a comparison." into mnc-dev

This commit is contained in:
Tyler Gunn
2015-06-09 22:04:07 +00:00
committed by Android (Google) Code Review
2 changed files with 27 additions and 2 deletions

View File

@@ -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;