summaryrefslogtreecommitdiffstats
path: root/core/java/com
diff options
context:
space:
mode:
authorAdam Powell <adamp@google.com>2011-10-10 11:15:56 -0700
committerAdam Powell <adamp@google.com>2011-10-10 11:15:56 -0700
commit7d09f04363cdda6a3cf8b2ad1b67c9a07fa8975f (patch)
treea4d24704abc2696063a841e72ab3a492165bcb71 /core/java/com
parente0f2515b444ceae20571cbe29e44237d259f54bd (diff)
downloadframeworks_base-7d09f04363cdda6a3cf8b2ad1b67c9a07fa8975f.zip
frameworks_base-7d09f04363cdda6a3cf8b2ad1b67c9a07fa8975f.tar.gz
frameworks_base-7d09f04363cdda6a3cf8b2ad1b67c9a07fa8975f.tar.bz2
Bug 5430909 - Overlay action bar should consume hover events
Otherwise these will incorrectly fall through to the view below. Change-Id: I97280c41b2080f3f156554c6eb111af246e140d0
Diffstat (limited to 'core/java/com')
-rw-r--r--core/java/com/android/internal/widget/ActionBarContainer.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/com/android/internal/widget/ActionBarContainer.java b/core/java/com/android/internal/widget/ActionBarContainer.java
index f95de62..0c572705 100644
--- a/core/java/com/android/internal/widget/ActionBarContainer.java
+++ b/core/java/com/android/internal/widget/ActionBarContainer.java
@@ -118,6 +118,14 @@ public class ActionBarContainer extends FrameLayout {
return true;
}
+ @Override
+ public boolean onHoverEvent(MotionEvent ev) {
+ super.onHoverEvent(ev);
+
+ // An action bar always eats hover events.
+ return true;
+ }
+
public void setTabContainer(ScrollingTabContainerView tabView) {
if (mTabContainer != null) {
removeView(mTabContainer);