Skip to content

Commit

Permalink
Disable curved display no matter the kind of VR video
Browse files Browse the repository at this point in the history
`enterVRVideo` will not be called again even if we switch
the projection mode. So, with curved display enabled, things
can still go wrong if users enters with a non-front-facing VR
projection then switched into a front-facing one.

Signed-off-by: Songlin Jiang <[email protected]>
  • Loading branch information
HollowMan6 committed Jan 23, 2024
1 parent 3620d69 commit 916adb3
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -913,10 +913,8 @@ private void enterVRVideo(@VideoProjectionMenuWidget.VideoProjectionFlags int aP

// Remember the cylinder density before we enter VR video
mSavedCylinderDensity = mWidgetManager.getCylinderDensity();
// We have to disable curved display temporary if we are playing front facing VR videos
if (isFrontFacingVRProjection(aProjection)) {
mWidgetManager.setCylinderDensityForce(0.0f);
}
// Disable curved display temporary
mWidgetManager.setCylinderDensityForce(0.0f);

mViewModel.setIsInVRVideo(true);
mWidgetManager.pushBackHandler(mVRVideoBackHandler);
Expand Down

0 comments on commit 916adb3

Please sign in to comment.