IMS-VT: Initialize to current UI orientation on enabling sensor
In some orientations (eg: when device is lying on a flat surface)
orientation listener will give unknown rotation value.
If a video call is started in this case, UI is created in
default orientation. However InCallOrientationEventListener sends
previously saved orientation which can cause rotation mismatch
between UI and the remote end video (CVO value).
To avoid such issue, initialize the static orientation variable to
current UI orientation value when orientation listener is enabled.
Change-Id: I4ea45e02343afb47d1835711bfd78d502cb0ccdb
CRs-Fixed: 2005713
1 file changed