Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0193f1f1 authored by Yorke Lee's avatar Yorke Lee Committed by Android (Google) Code Review
Browse files

Merge "Remove unnecessary HoverIgnoringLinearLayout"

parents a0c11ee3 b3873e06
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -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>
</view>
+0 −24
Original line number Diff line number Diff line
@@ -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*/