am 5c9bcc6f: Voice search icon not touch explorable.
* commit '5c9bcc6f5923b7b52b72bc7ba9dd7273b5630538': Voice search icon not touch explorable.
This commit is contained in:
commit
ecd98e706c
1 file changed
+7
@@ -19,6 +19,7 @@ package com.android.launcher2;
|
|||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.res.TypedArray;
|
import android.content.res.TypedArray;
|
||||||
import android.util.AttributeSet;
|
import android.util.AttributeSet;
|
||||||
|
import android.view.MotionEvent;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.LinearLayout;
|
import android.widget.LinearLayout;
|
||||||
|
|
||||||
@@ -37,6 +38,7 @@ public class DrawableStateProxyView extends LinearLayout {
|
|||||||
this(context, attrs, 0);
|
this(context, attrs, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public DrawableStateProxyView(Context context, AttributeSet attrs, int defStyle) {
|
public DrawableStateProxyView(Context context, AttributeSet attrs, int defStyle) {
|
||||||
super(context, attrs, defStyle);
|
super(context, attrs, defStyle);
|
||||||
|
|
||||||
@@ -59,4 +61,9 @@ public class DrawableStateProxyView extends LinearLayout {
|
|||||||
mView.setPressed(isPressed());
|
mView.setPressed(isPressed());
|
||||||
mView.setHovered(isHovered());
|
mView.setHovered(isHovered());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean onHoverEvent(MotionEvent event) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user