New issue
Advanced search Search tips

Issue 634948 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Aug 2016
Cc:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug

Blocking:
issue 607761



Sign in to add a comment

Clean up NewApi lint warnings

Project Member Reported by estevenson@chromium.org, Aug 5 2016

Issue description

Several NewApi lint warnings appear when building //chrome/android:chrome_java.

E.g.:
org/chromium/chrome/browser/ChromeTabbedActivity.class Call requires API level 21 (current min is 16): `android.app.ActivityManager#getAppTasks`: NewApi [warning]



 
Cc: agrieve@chromium.org
Labels: Type-Bug
Owner: estevenson@chromium.org
Status: Assigned (was: Unconfirmed)
Project Member

Comment 3 by bugdroid1@chromium.org, Aug 9 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/3c1222abf89c8f46438f9c917921f77cb959d3c0

commit 3c1222abf89c8f46438f9c917921f77cb959d3c0
Author: estevenson <estevenson@chromium.org>
Date: Tue Aug 09 19:46:32 2016

Add @TargetApi to version dependent methods.

Adding the @TargetApi annotation to methods that require newer features
of android will remove lint warnings while ensuring that the warnings
will return if anything is referenced above the API level specified in
the annotation.

BUG= 634948 

Review-Url: https://codereview.chromium.org/2219993002
Cr-Commit-Position: refs/heads/master@{#410771}

[modify] https://crrev.com/3c1222abf89c8f46438f9c917921f77cb959d3c0/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java
[modify] https://crrev.com/3c1222abf89c8f46438f9c917921f77cb959d3c0/chrome/android/java/src/org/chromium/chrome/browser/init/AsyncInitializationActivity.java
[modify] https://crrev.com/3c1222abf89c8f46438f9c917921f77cb959d3c0/chrome/android/java/src/org/chromium/chrome/browser/multiwindow/MultiWindowUtils.java

Status: Fixed (was: Assigned)

Sign in to add a comment