diff options
| author | Ta-wei Yen <twyen@google.com> | 2015-10-20 22:07:38 +0000 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2015-10-20 22:07:38 +0000 |
| commit | 7cd08b8ff758360d72e1fad3cd7dfcac6c852a51 (patch) | |
| tree | dd2f3103aa4aa256d0bc925e0b739bcd35361b3f | |
| parent | da6b3e06b9c34074f663889960b2005c9c3028d9 (diff) | |
| parent | f76d293fa3cac9e7683084891ac29f0b95628ee0 (diff) | |
| download | packages_apps_PhoneCommon-7cd08b8ff758360d72e1fad3cd7dfcac6c852a51.tar.gz packages_apps_PhoneCommon-7cd08b8ff758360d72e1fad3cd7dfcac6c852a51.tar.bz2 packages_apps_PhoneCommon-7cd08b8ff758360d72e1fad3cd7dfcac6c852a51.zip | |
Use RectF for mHoverBounds in DialpadKeyButton
am: f76d293fa3
* commit 'f76d293fa3cac9e7683084891ac29f0b95628ee0':
Use RectF for mHoverBounds in DialpadKeyButton
| -rw-r--r-- | src/com/android/phone/common/dialpad/DialpadKeyButton.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/phone/common/dialpad/DialpadKeyButton.java b/src/com/android/phone/common/dialpad/DialpadKeyButton.java index 4e3781c..8762914 100644 --- a/src/com/android/phone/common/dialpad/DialpadKeyButton.java +++ b/src/com/android/phone/common/dialpad/DialpadKeyButton.java @@ -17,7 +17,7 @@ package com.android.phone.common.dialpad; import android.content.Context; -import android.graphics.Rect; +import android.graphics.RectF; import android.os.Bundle; import android.util.AttributeSet; import android.view.MotionEvent; @@ -51,7 +51,7 @@ public class DialpadKeyButton extends FrameLayout { private AccessibilityManager mAccessibilityManager; /** Bounds used to filter HOVER_EXIT events. */ - private Rect mHoverBounds = new Rect(); + private RectF mHoverBounds = new RectF(); /** Whether this view is currently in the long-hover state. */ private boolean mLongHovered; @@ -169,7 +169,7 @@ public class DialpadKeyButton extends FrameLayout { setLongClickable(false); break; case MotionEvent.ACTION_HOVER_EXIT: - if (mHoverBounds.contains((int) event.getX(), (int) event.getY())) { + if (mHoverBounds.contains(event.getX(), event.getY())) { if (mLongHovered) { performLongClick(); } else { |
