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

Issue 2526673004: [Android] Fix a bug where the suggestion list can't scroll (Closed)

Created:
4 years ago by Ian Wen
Modified:
4 years ago
Reviewers:
mdjones, gone
CC:
chromium-reviews, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Fix a bug where the suggestion list can't scroll After we placed omnibox suggestion list as a child of CompositorViewHolder, it no longer is able to scroll. The investigation of this regression gave interesting result: if an ACTION_MOVE is dispatched to a ListView or a ScrollView and the ViewGroup intercepts it, the framework will generate an ACTION_CANCEL to the ViewGroup's children. The behavior, however, will steal this cancel event and send to the ViewGroup again, causing scroll to fail. Thus we should specifically not catch ACTION_CANCEL in behavior. BUG=648136 Committed: https://crrev.com/54b3389c1b9f0baf10fedd3bb78c85091a4e49b7 Cr-Commit-Position: refs/heads/master@{#434761}

Patch Set 1 #

Total comments: 1

Patch Set 2 : mdjones@'s comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -1 line) Patch
M chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolderBehavior.java View 1 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 13 (5 generated)
Ian Wen
PTAL
4 years ago (2016-11-24 00:45:31 UTC) #2
Ian Wen
4 years ago (2016-11-24 00:46:17 UTC) #4
mdjones
https://codereview.chromium.org/2526673004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolderBehavior.java File chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolderBehavior.java (right): https://codereview.chromium.org/2526673004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolderBehavior.java#newcode47 chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolderBehavior.java:47: if (!mShouldIntercept || ev.getActionMasked() == MotionEvent.ACTION_CANCEL) return false; Does ...
4 years ago (2016-11-28 16:24:50 UTC) #5
Ian Wen
PTAL. I updated the comments in code. This patch potentially will cause the parent ViewGroup ...
4 years ago (2016-11-28 19:31:58 UTC) #6
mdjones
lgtm
4 years ago (2016-11-28 21:09:04 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2526673004/20001
4 years ago (2016-11-28 21:13:59 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-11-28 22:58:52 UTC) #11
commit-bot: I haz the power
4 years ago (2016-11-28 23:00:57 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/54b3389c1b9f0baf10fedd3bb78c85091a4e49b7
Cr-Commit-Position: refs/heads/master@{#434761}

Powered by Google App Engine
This is Rietveld 408576698