Skip to content

Commit 17bd90f

Browse files
committed
update to GVR 1.40.0
1 parent 41623cd commit 17bd90f

File tree

12 files changed

+20
-18
lines changed

12 files changed

+20
-18
lines changed
-909 KB
Binary file not shown.
-2.01 MB
Binary file not shown.
-547 KB
Binary file not shown.
912 KB
Binary file not shown.
2.02 MB
Binary file not shown.
581 KB
Binary file not shown.

libraries/vr/lib/gvr-audio.jar

3 KB
Binary file not shown.

libraries/vr/lib/gvr-base.jar

3.12 KB
Binary file not shown.

libraries/vr/lib/gvr-common.jar

39 KB
Binary file not shown.

libraries/vr/src/processing/vr/PSurfaceVR.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
import android.app.ActivityManager;
3939
import android.content.Context;
4040
import android.content.Intent;
41-
import android.content.pm.ActivityInfo;
4241
import android.content.pm.ConfigurationInfo;
4342
import android.content.res.AssetManager;
4443
import android.view.MotionEvent;
@@ -141,13 +140,7 @@ public String getName() {
141140

142141
@Override
143142
public void setOrientation(int which) {
144-
if (component.getKind() == AppComponent.FRAGMENT) {
145-
if (which == PORTRAIT) {
146-
activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
147-
} else if (which == LANDSCAPE) {
148-
activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
149-
}
150-
}
143+
PGraphics.showWarning("Orientation in VR apps cannot be changed");
151144
}
152145

153146
@Override

0 commit comments

Comments
 (0)