summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMuhammed Siju <msiju@codeaurora.org>2016-02-26 13:44:17 +0530
committerSteve Kondik <steve@cyngn.com>2016-07-01 01:13:46 -0700
commitcde32f3a7bbcff9a572573a3143db3895832e325 (patch)
treef615cd666dd39570c74689ea3e6a93269fd8c496
parent5a7ea944b9ac0ca169d360403b9b516f0e211e11 (diff)
downloadpackages_apps_InCallUI-cde32f3a7bbcff9a572573a3143db3895832e325.tar.gz
packages_apps_InCallUI-cde32f3a7bbcff9a572573a3143db3895832e325.tar.bz2
packages_apps_InCallUI-cde32f3a7bbcff9a572573a3143db3895832e325.zip
IMS-VT: Fix for auto fullscreen issue during UI rotation.
Consider case where VT call UI is in fullscreen mode and the UI orientation is changed. When InCall activity is re created due to rotation, the fullscreen flag is still true, but actual UI will be created in normal mode. Due to wrong fullscreen flag value, auto enter fullscreen thread is not scheduled. To fix this clear fullscreen flag in InCallActivity.onCreate(). Change-Id: I18ec2b4442eae3b9ec01aeacc2b38f91f08f21c9 CRs-Fixed: 979860
-rw-r--r--src/com/android/incallui/InCallActivity.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/incallui/InCallActivity.java b/src/com/android/incallui/InCallActivity.java
index 092c2f6f..ad0cae44 100644
--- a/src/com/android/incallui/InCallActivity.java
+++ b/src/com/android/incallui/InCallActivity.java
@@ -197,6 +197,10 @@ public class InCallActivity extends Activity implements FragmentDisplayManager {
// TODO(klp): Do we need to add this back when prox sensor is not available?
// lp.inputFeatures |= WindowManager.LayoutParams.INPUT_FEATURE_DISABLE_USER_ACTIVITY;
+ // Since activity is created newly, clear full screen flag. This will ensure that
+ // the flag is in sync with actual UI when UI is recreated due to orientation change.
+ InCallPresenter.getInstance().clearFullscreen();
+
setContentView(R.layout.incall_screen);
internalResolveIntent(getIntent());