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

Skip to content
Commit 4d232d62 authored by Abodunrinwa Toki's avatar Abodunrinwa Toki
Browse files

TextClassifier cleanup #1

 - Introduces TextClassifier methods that do not take options
 - Adds warning to TextClassifier implementations not to implement
   or call certain default methods. Ideally, only one of the
   overloaded interface methods (the one that takes Options) needs
   to be implemented
 - Changes TextLinks.Options to a mutable type
 - Updates tests

 TODO: Introduce a TextClassification.Builder.setDefaultAction(...) and
 change addAction(...) to addExtraAction(...).
 TODO: Cts test to validate input params.

Bug: 68846316
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Change-Id: I9a12935388e16a9b57567a71c97afaee63405183
parent 1a0e948f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment