Fix a lint issue with ActivityContentVideoViewClient.java.

Currently, the lint warns at:
Error: Field requires API level 16 (current min is 14):
    android.view.View#SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION [InlinedApi]
Error: Field requires API level 16 (current min is 14):
    android.view.View#SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN [InlinedApi]
Error: Field requires API level 16 (current min is 14):
    android.view.View#SYSTEM_UI_FLAG_FULLSCREEN [InlinedApi]

So we need to add @SuppressLint("InlinedApi") to suppress these lint errors.

BUG=327768

Review URL: https://codereview.chromium.org/305333002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274273 0039d316-1c4b-4281-b951-d872f2087c98
parent b15010b5
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
package org.chromium.content.browser; package org.chromium.content.browser;
import android.annotation.SuppressLint;
import android.app.Activity; import android.app.Activity;
import android.os.Build; import android.os.Build;
import android.view.Gravity; import android.view.Gravity;
...@@ -54,11 +55,12 @@ public class ActivityContentVideoViewClient implements ContentVideoViewClient { ...@@ -54,11 +55,12 @@ public class ActivityContentVideoViewClient implements ContentVideoViewClient {
* @param view The decor view belongs to the activity window * @param view The decor view belongs to the activity window
* @param enterFullscreen True if video is going fullscreen, or false otherwise. * @param enterFullscreen True if video is going fullscreen, or false otherwise.
*/ */
@SuppressLint("InlinedApi")
private void setSystemUiVisibility(View view, boolean enterFullscreen) { private void setSystemUiVisibility(View view, boolean enterFullscreen) {
if (enterFullscreen) { if (enterFullscreen) {
mActivity.getWindow().setFlags( mActivity.getWindow().setFlags(
WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN); WindowManager.LayoutParams.FLAG_FULLSCREEN);
} else { } else {
mActivity.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); mActivity.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
} }
......
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