|
18 | 18 | import org.mozilla.geckoview.MediaElement; |
19 | 19 | import org.mozilla.vrbrowser.R; |
20 | 20 | import org.mozilla.vrbrowser.browser.Media; |
21 | | -import org.mozilla.vrbrowser.browser.SettingsStore; |
22 | 21 | import org.mozilla.vrbrowser.databinding.MediaControlsBinding; |
23 | 22 | import org.mozilla.vrbrowser.ui.views.MediaSeekBar; |
24 | 23 | import org.mozilla.vrbrowser.ui.views.VolumeControl; |
@@ -100,12 +99,7 @@ private void initialize(Context aContext) { |
100 | 99 | placement.worldWidth = 0.5f; |
101 | 100 | placement.parentAnchorX = 0.65f; |
102 | 101 | placement.parentAnchorY = 0.4f; |
103 | | - placement.cylinderMapRadius = 0.0f; |
104 | | - placement.cylinder = SettingsStore.getInstance(getContext()).isCurvedModeEnabled(); |
105 | | - if (mWidgetManager.getCylinderDensity() > 0) { |
106 | | - placement.rotationAxisY = 1.0f; |
107 | | - placement.rotation = (float) Math.toRadians(-7); |
108 | | - } |
| 102 | + placement.cylinder = false; |
109 | 103 | if (mProjectionMenu.isVisible()) { |
110 | 104 | mProjectionMenu.hide(KEEP_WIDGET); |
111 | 105 |
|
@@ -260,7 +254,7 @@ protected void initializeWidgetPlacement(WidgetPlacement aPlacement) { |
260 | 254 | aPlacement.anchorY = 0.5f; |
261 | 255 | aPlacement.parentAnchorX = 0.5f; |
262 | 256 | aPlacement.parentAnchorY = 0.0f; |
263 | | - aPlacement.cylinderMapRadius = 0.0f; // Do not map X when this widget uses cylindrical layout. |
| 257 | + aPlacement.cylinder = false; |
264 | 258 | } |
265 | 259 |
|
266 | 260 | public void setParentWidget(int aHandle) { |
|
0 commit comments