History log of /frameworks/opt/setupwizard/library/eclair-mr1/src/com/android/setupwizardlib/view/RichTextView.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ee2a6a670db446954ee9d532a4a9c565164539ec 21-Mar-2017 Maurice Lam <yukl@google.com> Implement ExpandableSwitchItem

Implement the switch item that is expandable when the text label is
tapped.

Bug: 36388000
Test: ./gradlew connectedAndroidTest test
Change-Id: Ic476164f5abebe1e879b0ee3a8c2e429e1b74372
/frameworks/opt/setupwizard/library/eclair-mr1/src/com/android/setupwizardlib/view/RichTextView.java
9a3d23293ecf8b76b8c22e1381005751a88a458a 24-Jun-2016 Ajay Nadathur <ajayns@google.com> [SuwLib] Tap on list items must always register

When talkback is enabled, sometimes tap on list items does not result in
the whole item being selected by talkback. (No green border around the
item)

- This was caused because focus was enabled on richtextviews by
ExploreByTouchHelper.
- Fix is to avoid creating LinkAccessibilityHelper when focus is
disabled and text has no links

bug:29538956
Change-Id: I795a1f621635e8e8e5ee2fa60d2eafc02144b84a
/frameworks/opt/setupwizard/library/eclair-mr1/src/com/android/setupwizardlib/view/RichTextView.java
11e78276fbeb0014ac810966f3fbf3be3b848c21 31-May-2016 Ajay Nadathur <ajayns@google.com> [SetupWizard] Learn more link is not working in fingerprint screen

- TextView.setMovementMethod internally calls setText(CharSequence).
We were calling setMovementMethod before setting the text. 'mText' is
passed as the first parameter to setText(CharSequence) by
the caller: setMovementMethod. Since mText at
that point was null, hasLinks(CharSequence) returns false. As a
result, the movementMethod is set to 'null'. mMovement being
null, touch events was not handled by the TextView

- Fixed the problem by moving super.setText to the beginning of the
method.

Testing:
--------
- Verified on Angler

bug:29036596
Change-Id: I2df8c04289ff7d6c71a9636d04276b5034dc3f5c
/frameworks/opt/setupwizard/library/eclair-mr1/src/com/android/setupwizardlib/view/RichTextView.java
d9a2a2c2496a2116e390a3141209fa64dc13dc9a 25-May-2016 Maurice Lam <yukl@google.com> [SuwLib] Add movement method only if there are links

Only add movement methods to RichTextView if it contains links,
because movement method will set the clickable attribute on the view
and forces View.onTouchEvent to consume everything.

Bug: 28901147
Change-Id: Ic90863ba15214629c927248c03bfd109c83e3109
/frameworks/opt/setupwizard/library/eclair-mr1/src/com/android/setupwizardlib/view/RichTextView.java
7a95c81b11f422d57b8b04c87287ec23aa4469d5 24-May-2016 Ajay Nadathur <ajayns@google.com> [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
/frameworks/opt/setupwizard/library/eclair-mr1/src/com/android/setupwizardlib/view/RichTextView.java
d832154e333a3a45b5faecd518b664ddd297183c 25-Feb-2016 Maurice Lam <yukl@google.com> [SuwLib] Upstream LinkSpan and AnnotatedTextView

Upstream LinkSpan and AnnotatedTextView to easily create
accessibility-friendly rich text TextViews with links.

Bug: 27886391
Change-Id: I20137fb454c4b9d820263c8ce326380c1db2ef20
/frameworks/opt/setupwizard/library/eclair-mr1/src/com/android/setupwizardlib/view/RichTextView.java