Use @SuppressLint in place of @TargetApi to suppress lint warnings for the inlined API.

This is a follow up to https://codereview.chromium.org/273313003.
Please refer to the discussion in the above link.

BUG=327768

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271208 0039d316-1c4b-4281-b951-d872f2087c98
parent a51494e0
......@@ -10,7 +10,7 @@ import android.accounts.AccountManagerCallback;
import android.accounts.AccountManagerFuture;
import android.accounts.AuthenticatorException;
import android.accounts.OperationCanceledException;
import android.annotation.TargetApi;
import android.annotation.SuppressLint;
import android.app.ActionBar;
import android.app.Activity;
import android.app.AlertDialog;
......@@ -100,7 +100,7 @@ public class Chromoting extends Activity implements JniInterface.ConnectionListe
builder.setMessage(R.string.noaccounts_message);
builder.setPositiveButton(R.string.noaccounts_add_account,
new DialogInterface.OnClickListener() {
@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR2)
@SuppressLint("InlinedApi")
@Override
public void onClick(DialogInterface dialog, int id) {
Intent intent = new Intent(Settings.ACTION_ADD_ACCOUNT);
......
......@@ -4,7 +4,7 @@
package org.chromium.chromoting;
import android.annotation.TargetApi;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.res.Configuration;
import android.os.Build;
......@@ -88,7 +88,7 @@ public class Desktop extends Activity implements View.OnSystemUiVisibilityChange
}
}
@TargetApi(Build.VERSION_CODES.JELLY_BEAN)
@SuppressLint("InlinedApi")
private int getSystemUiFlags() {
int flags = View.SYSTEM_UI_FLAG_LOW_PROFILE;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
......
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