Fixing shortcut popop non-clicable on the icon
Bug: 160819504 Change-Id: I182399aa271a2ad290c33fb39356f8f2c99e105f
This commit is contained in:
1 parent
b82121c006
commit
44a3b2030d
2 files changed
+17
-11
No files matched your search
@@ -23,7 +23,6 @@ import android.graphics.Rect;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.text.TextUtils;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.MotionEvent;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.android.launcher3.BubbleTextView;
|
||||
@@ -106,12 +105,12 @@ public class DeepShortcutTextView extends BubbleTextView {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onTouchEvent(MotionEvent ev) {
|
||||
if (ev.getAction() == MotionEvent.ACTION_DOWN) {
|
||||
// Show toast if user touches the drag handle (long clicks still start the drag).
|
||||
mShowInstructionToast = mDragHandleBounds.contains((int) ev.getX(), (int) ev.getY());
|
||||
}
|
||||
return super.onTouchEvent(ev);
|
||||
protected boolean shouldIgnoreTouchDown(float x, float y) {
|
||||
// Show toast if user touches the drag handle (long clicks still start the drag).
|
||||
mShowInstructionToast = mDragHandleBounds.contains((int) x, (int) y);
|
||||
|
||||
// assume the whole view as clickable
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user