Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(441)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenu.java

Issue 2830843004: Update to newer Android Lint and suppress new Lint errors (Closed)
Patch Set: rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenu.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenu.java b/chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenu.java
index 00c02a3985af066c0c1c163ce0cfad12e864be71..0a36f1ad87f03f56d1337081684088e3e8992e13 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenu.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenu.java
@@ -7,6 +7,7 @@ package org.chromium.chrome.browser.appmenu;
import android.animation.Animator;
import android.animation.Animator.AnimatorListener;
import android.animation.AnimatorSet;
+import android.annotation.SuppressLint;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Rect;
@@ -150,6 +151,7 @@ public class AppMenu implements OnItemClickListener, OnKeyListener {
* {@code 0} is dedicated to custom menu items and can be declared by
* external apps.
*/
+ @SuppressLint("ResourceType")
void show(Context context, View anchorView, boolean isByPermanentButton, int screenRotation,
Rect visibleDisplayFrame, int screenHeight, @IdRes int footerResourceId,
Integer highlightedItemId) {
@@ -161,6 +163,7 @@ public class AppMenu implements OnItemClickListener, OnKeyListener {
int footerHeight = 0;
if (footerResourceId != 0) {
mPopup.setPromptPosition(ListPopupWindow.POSITION_PROMPT_BELOW);
+ // TODO(crbug.com/635567): Fix lint error properly.
mPromptView = LayoutInflater.from(context).inflate(footerResourceId, null);
mPopup.setPromptView(mPromptView);
int measureSpec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED);

Powered by Google App Engine
This is Rietveld 408576698