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

Commit fdee9b44 authored by Alan Viverette's avatar Alan Viverette Committed by Android (Google) Code Review
Browse files

Merge "Fix TextView clickable state when using onClick attribute" into lmp-dev

parents 21be43e1 f32efebf
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++) {