Skip to content

Commit 7d09f04

Browse files
committed
Bug 5430909 - Overlay action bar should consume hover events
Otherwise these will incorrectly fall through to the view below. Change-Id: I97280c41b2080f3f156554c6eb111af246e140d0
1 parent e0f2515 commit 7d09f04

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

core/java/com/android/internal/widget/ActionBarContainer.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,14 @@ public boolean onTouchEvent(MotionEvent ev) {
118118
return true;
119119
}
120120

121+
@Override
122+
public boolean onHoverEvent(MotionEvent ev) {
123+
super.onHoverEvent(ev);
124+
125+
// An action bar always eats hover events.
126+
return true;
127+
}
128+
121129
public void setTabContainer(ScrollingTabContainerView tabView) {
122130
if (mTabContainer != null) {
123131
removeView(mTabContainer);

0 commit comments

Comments
 (0)