History log of /frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/view/RichTextViewTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e58194099d9133ce7b2e19fe7c717679b62fddb2 06-Apr-2018 Maurice Lam <yukl@google.com> Revert "Revert "Add workaround for touch event propagation""

This reverts commit b268a8c365a4c9dcb7b1382a7ce3ec5607b22de0.

Rolling forward with suppress for the lint errors

Test: ./gradlew lint
Bug: 77338508
Change-Id: I9582bfbb4c73ae60a15e8285facf20da458b9690
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/view/RichTextViewTest.java
a6d66b41b08b2d612da1a3e27c651053ceb7a871 06-Apr-2018 Maurice Lam <yukl@google.com> Revert "Add workaround for touch event propagation"

This reverts commit e4475dcf52c1235a7d9756b454fa81fb4b54726c.

Reason for revert: Breaks ub-setupwizard-master build (lint error)

Bug: 77338508
Test: ./gradlew lint
Change-Id: I251ff930b7d8391db3ea55597fa42f491cdff963
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/view/RichTextViewTest.java
e4475dcf52c1235a7d9756b454fa81fb4b54726c 05-Apr-2018 Maurice Lam <yukl@google.com> Add workaround for touch event propagation

In TextView with links, onTouchEvent always return true regardless of
return value from the movement method because View#onTouchEvent is
hard coded to return true whenever the view is clickable.

In RichTextView, add a layer of abstraction to allow the movement
method to override the return value. TouchableLinkMovementMethod is
an implementation added, which will consume the event only when a
link is being touched.

Test: ./gradlew test
Bug: 77338508
Change-Id: I761579d6f153a41beb979acd88a4090eb3998cf3
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/view/RichTextViewTest.java
618a4449bb3e9be43586040ea2fb9a6371365ae7 06-Mar-2018 Maurice Lam <yukl@google.com> Add touch feedback to links

- Clear selection after LinkSpan is clicked so that the highlight
effect will be cleared when the tap completes
- Set focusableInTouchMode to true and revealOnFocusHint to false
in RichTextView for N MR1 or above to allow the highlight effect
to be visible in touch mode.

Test: ./gradlew test connectedAndroidTest
Bug: 73350031
Change-Id: Ibb6f67102775802cdfebaa1529c09d936b4096cb
(cherry picked from commit bc1c7a159c14f8b8f532fec60681d34771cd7909)
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/view/RichTextViewTest.java