Clean up NewApi lint warnings |
|||
Issue descriptionSeveral 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]
,
Aug 8 2016
,
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
,
Aug 10 2016
|
|||
►
Sign in to add a comment |
|||
Comment 1 by estevenson@chromium.org
, Aug 5 2016Labels: Type-Bug