Fix TextView clickable state when using onClick attribute

Change-Id: I67347f3c80958e47abc124f1a8c0ffec01175378
This commit is contained in:
Alan Viverette
2014-08-14 14:03:21 -07:00
parent 9fde9a250f
commit f32efebf9b

View File

@@ -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++) {