summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2015-02-20 07:00:50 -0800
committerYorke Lee <yorkelee@google.com>2015-02-20 07:00:50 -0800
commitb3873e0650854d4b0c48d31503ccb330454acd05 (patch)
tree67140e1c5a2e88a27fa364517d5c88f670aa1bab
parentc58b2f08663fb154bf21952235d578c1e0bf6373 (diff)
Remove unnecessary HoverIgnoringLinearLayout
DialpadView already implements the necessary behavior Change-Id: Ie4eb0b88a8c7d7e78564e23ebc13108a74cb1b9c
-rw-r--r--InCallUI/res/layout/dtmf_twelve_key_dialer_view.xml8
-rw-r--r--InCallUI/src/com/android/incallui/DialpadFragment.java24
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*/