Commit a7e4fc0f authored by Tibor Goldschwendt's avatar Tibor Goldschwendt Committed by Commit Bot

[vr] Make sure Display.getRealMetrics() is only used on API Level 17+

Bug: 762588
Change-Id: I73723544788847a2209155eec756c7573dfe7b1d
Reviewed-on: https://chromium-review.googlesource.com/788891Reviewed-by: default avatarMichael Thiessen <mthiesse@chromium.org>
Commit-Queue: Tibor Goldschwendt <tiborg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#539974}
parent 2ee263a0
......@@ -5,8 +5,10 @@
package org.chromium.chrome.browser.vr_shell;
import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.graphics.PixelFormat;
import android.graphics.Point;
import android.os.Build;
import android.os.StrictMode;
import android.util.DisplayMetrics;
import android.view.KeyEvent;
......@@ -303,8 +305,7 @@ public class VrShellImpl
}
@Override
// TODO(crbug.com/762588): Fix getRealMetrics and remove suppression.
@SuppressLint("NewApi")
@TargetApi(Build.VERSION_CODES.N)
public void initializeNative(Tab currentTab, boolean forWebVr,
boolean webVrAutopresentationExpected, boolean inCct) {
Tab tab = mActivity.getActivityTab();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment