Commit 5af70ef0 authored by Tomasz Wiszkowski's avatar Tomasz Wiszkowski Committed by Commit Bot

Remove ICS specific layoutChildren override

This change cleans up ICS specific overrides from
OmniboxSuggestionsList component.

Change-Id: I3a486a002290a84779fc0ef92d3761d899550bf8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2154065Reviewed-by: default avatarTed Choc <tedchoc@chromium.org>
Commit-Queue: Ender <ender@google.com>
Cr-Commit-Position: refs/heads/master@{#759902}
parent c86b2fc3
......@@ -237,16 +237,6 @@ public class OmniboxSuggestionsList extends ListView implements OnScrollListener
return super.onKeyDown(keyCode, event);
}
@Override
protected void layoutChildren() {
super.layoutChildren();
// In ICS, the selected view is not marked as selected despite calling setSelection(0),
// so we bootstrap this after the children have been laid out.
if (!isInTouchMode() && getSelectedView() != null) {
getSelectedView().setSelected(true);
}
}
@Override
protected void onAttachedToWindow() {
super.onAttachedToWindow();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment