summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRavi Paluri <rpaluri@codeaurora.org>2015-10-30 15:22:27 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2015-11-05 18:55:28 -0800
commita7270e73d5ad0cc37e3eef93a3f6335e2962c32b (patch)
tree63cdfbb86d041d31150b10746e8b01c68da16369
parentd947f2a42d8aac9722d350546e8663c213e6cba7 (diff)
downloadandroid_packages_apps_InCallUI-a7270e73d5ad0cc37e3eef93a3f6335e2962c32b.tar.gz
android_packages_apps_InCallUI-a7270e73d5ad0cc37e3eef93a3f6335e2962c32b.tar.bz2
android_packages_apps_InCallUI-a7270e73d5ad0cc37e3eef93a3f6335e2962c32b.zip
IMS-VT: Always update "mIsInBackground" flag
update "mIsInBackground" flag whenever there are indications that UE moved to either background or foreground and never ignore these indications Change-Id: I9f127fa640b779175dda95ff44aa5e77dc645a42 CRs-Fixed: 932815
-rw-r--r--src/com/android/incallui/VideoCallPresenter.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/incallui/VideoCallPresenter.java b/src/com/android/incallui/VideoCallPresenter.java
index cbfc81d6..cddd40e6 100644
--- a/src/com/android/incallui/VideoCallPresenter.java
+++ b/src/com/android/incallui/VideoCallPresenter.java
@@ -877,12 +877,13 @@ public class VideoCallPresenter extends Presenter<VideoCallPresenter.VideoCallUi
Log.d(this, "onUiShowing, showing = " + showing + " mPrimaryCall = " + mPrimaryCall +
" mPreviewSurfaceState = " + mPreviewSurfaceState);
+ mIsInBackground = !showing;
+
if (mPrimaryCall == null || !CallUtils.isActiveVideoCall(mPrimaryCall)) {
Log.w(this, "onUiShowing, received for non-active video call");
return;
}
- mIsInBackground = !showing;
if (showing) {
maybeEnableCamera();
} else if (mPreviewSurfaceState != PreviewSurfaceState.NONE) {