summaryrefslogtreecommitdiffstats
path: root/src/com/android/contacts/common/list/ContactListItemView.java
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2013-11-13 18:48:17 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2013-11-13 18:48:17 -0800
commit9552192be3977ce2a7fd21b091dffa38808df73e (patch)
tree3e0dda4c8e59785371ed9590d2e61947bf1bfe8b /src/com/android/contacts/common/list/ContactListItemView.java
parent0d04ee127bd45ec4657b4293b0f67265188dc4cc (diff)
parent02de5655eef21607f2d20a1e643e230ce05669d6 (diff)
downloadandroid_packages_apps_ContactsCommon-9552192be3977ce2a7fd21b091dffa38808df73e.tar.gz
android_packages_apps_ContactsCommon-9552192be3977ce2a7fd21b091dffa38808df73e.tar.bz2
android_packages_apps_ContactsCommon-9552192be3977ce2a7fd21b091dffa38808df73e.zip
am 02de5655: am dfd7e86b: am 538e05b3: Fix a bug with pressed state in ContactListItemView
* commit '02de5655eef21607f2d20a1e643e230ce05669d6': Fix a bug with pressed state in ContactListItemView
Diffstat (limited to 'src/com/android/contacts/common/list/ContactListItemView.java')
-rw-r--r--src/com/android/contacts/common/list/ContactListItemView.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/android/contacts/common/list/ContactListItemView.java b/src/com/android/contacts/common/list/ContactListItemView.java
index 08f544ee..d45fc5bc 100644
--- a/src/com/android/contacts/common/list/ContactListItemView.java
+++ b/src/com/android/contacts/common/list/ContactListItemView.java
@@ -1533,7 +1533,10 @@ public class ContactListItemView extends ViewGroup
public boolean onTouchEvent(MotionEvent event) {
final float x = event.getX();
final float y = event.getY();
- if (mBoundsWithoutHeader.contains((int) x, (int) y)) {
+ // If the touch event's coordinates are not within the view's header, then delegate
+ // to super.onTouchEvent so that regular view behavior is preserved. Otherwise, consume
+ // and ignore the touch event.
+ if (mBoundsWithoutHeader.contains((int) x, (int) y) || !pointInView(x, y, 0)) {
return super.onTouchEvent(event);
} else {
return true;