From cde32f3a7bbcff9a572573a3143db3895832e325 Mon Sep 17 00:00:00 2001 From: Muhammed Siju Date: Fri, 26 Feb 2016 13:44:17 +0530 Subject: 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 --- src/com/android/incallui/InCallActivity.java | 4 ++++ 1 file changed, 4 insertions(+) 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()); -- cgit v1.2.3