diff options
author | Yorke Lee <yorkelee@google.com> | 2015-02-20 07:00:50 -0800 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2015-02-20 07:00:50 -0800 |
commit | b3873e0650854d4b0c48d31503ccb330454acd05 (patch) | |
tree | 67140e1c5a2e88a27fa364517d5c88f670aa1bab | |
parent | c58b2f08663fb154bf21952235d578c1e0bf6373 (diff) |
Remove unnecessary HoverIgnoringLinearLayout
DialpadView already implements the necessary behavior
Change-Id: Ie4eb0b88a8c7d7e78564e23ebc13108a74cb1b9c
-rw-r--r-- | InCallUI/res/layout/dtmf_twelve_key_dialer_view.xml | 8 | ||||
-rw-r--r-- | InCallUI/src/com/android/incallui/DialpadFragment.java | 24 |
2 files changed, 1 insertions, 31 deletions
diff --git a/InCallUI/res/layout/dtmf_twelve_key_dialer_view.xml b/InCallUI/res/layout/dtmf_twelve_key_dialer_view.xml index efd698286..b567dbbf2 100644 --- a/InCallUI/res/layout/dtmf_twelve_key_dialer_view.xml +++ b/InCallUI/res/layout/dtmf_twelve_key_dialer_view.xml @@ -20,11 +20,5 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> - - <view class="com.android.incallui.DialpadFragment$HoverIgnoringLinearLayout" - android:orientation="vertical" - android:layout_width="match_parent" - android:layout_height="match_parent" > - <include layout="@layout/dialpad_view"/> - </view> + <include layout="@layout/dialpad_view"/> </view> diff --git a/InCallUI/src/com/android/incallui/DialpadFragment.java b/InCallUI/src/com/android/incallui/DialpadFragment.java index da3f0cb74..7c5b3584a 100644 --- a/InCallUI/src/com/android/incallui/DialpadFragment.java +++ b/InCallUI/src/com/android/incallui/DialpadFragment.java @@ -83,30 +83,6 @@ public class DialpadFragment extends BaseFragment<DialpadPresenter, DialpadPrese } } - /** - * LinearLayout that always returns true for onHoverEvent callbacks, to fix - * problems with accessibility due to the dialpad overlaying other fragments. - */ - public static class HoverIgnoringLinearLayout extends LinearLayout { - - public HoverIgnoringLinearLayout(Context context) { - super(context); - } - - public HoverIgnoringLinearLayout(Context context, AttributeSet attrs) { - super(context, attrs); - } - - public HoverIgnoringLinearLayout(Context context, AttributeSet attrs, int defStyle) { - super(context, attrs, defStyle); - } - - @Override - public boolean onHoverEvent(MotionEvent event) { - return true; - } - } - private EditText mDtmfDialerField; /** Hash Map to map a view id to a character*/ |