Voice search icon not touch explorable.
1. The overlaid DrawableStateProxyView was reacting to
hover events essentially being touch explored so the
views it coders did not get a chance to be touch
explored. Now this view ignores hover events.
bug:6581924
Change-Id: I69d5ccaaf88b0f0ef661a237ce8a8abb8f65fa95
diff --git a/src/com/android/launcher2/DrawableStateProxyView.java b/src/com/android/launcher2/DrawableStateProxyView.java
index dac9584..5d2f6e0 100644
--- a/src/com/android/launcher2/DrawableStateProxyView.java
+++ b/src/com/android/launcher2/DrawableStateProxyView.java
@@ -19,6 +19,7 @@
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
+import android.view.MotionEvent;
import android.view.View;
import android.widget.LinearLayout;
@@ -37,6 +38,7 @@
this(context, attrs, 0);
}
+
public DrawableStateProxyView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
@@ -59,4 +61,9 @@
mView.setPressed(isPressed());
mView.setHovered(isHovered());
}
+
+ @Override
+ public boolean onHoverEvent(MotionEvent event) {
+ return false;
+ }
}