Skip to content

Commit

Permalink
backend_oculus: fix for Android 9
Browse files Browse the repository at this point in the history
  • Loading branch information
liaxim committed Jun 3, 2019
1 parent a899155 commit 2cf6e14
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public void onSetScript() {
mSurfaceView.setZOrderOnTop(true);

final DisplayMetrics metrics = new DisplayMetrics();
mApplication.getActivity().getWindowManager().getDefaultDisplay().getMetrics(metrics);
mApplication.getActivity().getWindowManager().getDefaultDisplay().getRealMetrics(metrics);
final VrAppSettings appSettings = mApplication.getAppSettings();
int defaultWidthPixels = Math.max(metrics.widthPixels, metrics.heightPixels);
int defaultHeightPixels = Math.min(metrics.widthPixels, metrics.heightPixels);
Expand Down

0 comments on commit 2cf6e14

Please sign in to comment.