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
Loading
Please register or sign in to comment