diff options
author | Ajay Nadathur <ajayns@google.com> | 2016-05-24 12:41:05 -0700 |
---|---|---|
committer | Ajay Kumar Nadathur Sreenivasan <ajayns@google.com> | 2016-05-24 20:41:56 +0000 |
commit | 7a95c81b11f422d57b8b04c87287ec23aa4469d5 (patch) | |
tree | af69b85b4642112c6cc194334c0a9c1b0a9c386b | |
parent | 381c77b8d67f8332d2984f85067a59a2f7dc3921 (diff) | |
download | setupwizard-7a95c81b11f422d57b8b04c87287ec23aa4469d5.tar.gz |
[SuwLib] RichTextView should not consume touch events
TextView consumes event when it contains clickablespan. As a result,
the listeners of the parent container is not notified of touch events.
bug:28901147
Change-Id: Idccb30850bdbd1838bc71bdd703d79ff96c9f639
-rw-r--r-- | library/eclair-mr1/src/com/android/setupwizardlib/view/RichTextView.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/library/eclair-mr1/src/com/android/setupwizardlib/view/RichTextView.java b/library/eclair-mr1/src/com/android/setupwizardlib/view/RichTextView.java index d79d149..9f20c03 100644 --- a/library/eclair-mr1/src/com/android/setupwizardlib/view/RichTextView.java +++ b/library/eclair-mr1/src/com/android/setupwizardlib/view/RichTextView.java @@ -115,4 +115,11 @@ public class RichTextView extends TextView { } return super.dispatchHoverEvent(event); } + + @Override + public boolean onTouchEvent(MotionEvent event) { + super.onTouchEvent(event); + // Do not consume touch events as they need to propagate to the parent containers for action + return false; + } } |