DescriptionSuppress lint warnings related to ClickableViewAccessibility while implementing
onTouchEvent()
The following lint warnings are reported when chrome shell is built:
1) org/chromium/content/browser/PopupZoomer.class
Custom view org/chromium/content/browser/PopupZoomer overrides
onTouchEvent but not performClick: ClickableViewAccessibility [warning]
2) org/chromium/content/browser/input/PopupTouchHandleDrawable.class
Custom view org/chromium/content/browser/input/PopupTouchHandleDrawable
overrides onTouchEvent but not performClick: ClickableViewAccessibility [warning]
3) org/chromium/chrome/shell/ChromeShellToolbar$7.class
org/chromium/chrome/shell/ChromeShellToolbar$7#onTouch
should call View#performClick when a click is detected:
ClickableViewAccessibility [warning]
4) org/chromium/chrome/browser/appmenu/AppMenuButtonHelper.class
org/chromium/chrome/browser/appmenu/AppMenuButtonHelper#onTouch
should call View#performClick when a click is detected:
ClickableViewAccessibility [warning]
As performClick is not required to be overriden hence these warnings can be suppressed.
BUG=None.
Committed: https://crrev.com/813cb6cd34822072dd6b0bc1744c31ff4c0bac88
Cr-Commit-Position: refs/heads/master@{#300847}
Patch Set 1 #Patch Set 2 : resolving lints #
Total comments: 7
Patch Set 3 : reverting previous changes #
Messages
Total messages: 22 (4 generated)
|