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

Commit d41b41f3 authored by Siarhei Vishniakou's avatar Siarhei Vishniakou
Browse files

Remove mSupportsLongpress from KeyButtonView

This variable is always true. Remove this variable.

Bug: 128553584
Test: none
Change-Id: I0e6994655cfc4c503ea057029986ed415099bef0
parent 160ad6b2
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -66,7 +66,6 @@ public class KeyButtonView extends ImageView implements ButtonInterface {
    private int mTouchDownX;
    private int mTouchDownY;
    private boolean mIsVertical;
    private boolean mSupportsLongpress = true;
    private AudioManager mAudioManager;
    private boolean mGestureAborted;
    private boolean mLongClicked;
@@ -83,7 +82,7 @@ public class KeyButtonView extends ImageView implements ButtonInterface {
                    // Just an old-fashioned ImageView
                    performLongClick();
                    mLongClicked = true;
                } else if (mSupportsLongpress) {
                } else {
                    sendEvent(KeyEvent.ACTION_DOWN, KeyEvent.FLAG_LONG_PRESS);
                    sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_LONG_CLICKED);
                    mLongClicked = true;
@@ -165,7 +164,7 @@ public class KeyButtonView extends ImageView implements ButtonInterface {
        super.onInitializeAccessibilityNodeInfo(info);
        if (mCode != KEYCODE_UNKNOWN) {
            info.addAction(new AccessibilityNodeInfo.AccessibilityAction(ACTION_CLICK, null));
            if (mSupportsLongpress || isLongClickable()) {
            if (isLongClickable()) {
                info.addAction(
                        new AccessibilityNodeInfo.AccessibilityAction(ACTION_LONG_CLICK, null));
            }