Commit a8b44439 authored by Amirhossein Simjour's avatar Amirhossein Simjour Committed by Commit Bot

Make Items in DropdownPopupWindow always focusable

Make sure that AnchoredPopupWindow inside of DropdownPopupWindow
is always focusable, so the items in the list can be selected.

Bug: 820898
Change-Id: I8ede526787cad6bb585013d2c4280d502eff7652
Reviewed-on: https://chromium-review.googlesource.com/974172Reviewed-by: default avatarTheresa <twellington@chromium.org>
Commit-Queue: Amirhossein Simjour <asimjour@chromium.org>
Cr-Commit-Position: refs/heads/master@{#545066}
parent 88e3c770
...@@ -82,6 +82,7 @@ public class DropdownPopupWindow implements AnchoredPopupWindow.LayoutObserver { ...@@ -82,6 +82,7 @@ public class DropdownPopupWindow implements AnchoredPopupWindow.LayoutObserver {
mHorizontalPadding = paddingRect.right + paddingRect.left; mHorizontalPadding = paddingRect.right + paddingRect.left;
mAnchoredPopupWindow.setPreferredHorizontalOrientation( mAnchoredPopupWindow.setPreferredHorizontalOrientation(
AnchoredPopupWindow.HORIZONTAL_ORIENTATION_CENTER); AnchoredPopupWindow.HORIZONTAL_ORIENTATION_CENTER);
mAnchoredPopupWindow.setFocusable(true);
} }
/** /**
......
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