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

Commit f32efebf authored by Alan Viverette's avatar Alan Viverette
Browse files

Fix TextView clickable state when using onClick attribute

Change-Id: I67347f3c80958e47abc124f1a8c0ffec01175378
parent 9fde9a25
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1320,8 +1320,8 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
                attrs, com.android.internal.R.styleable.View, defStyleAttr, defStyleRes);

        boolean focusable = mMovement != null || getKeyListener() != null;
        boolean clickable = focusable;
        boolean longClickable = focusable;
        boolean clickable = focusable || isClickable();
        boolean longClickable = focusable || isLongClickable();

        n = a.getIndexCount();
        for (int i = 0; i < n; i++) {