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

Commit a67cba73 authored by Tony Mak's avatar Tony Mak Committed by Abodunrinwa Toki
Browse files

Disable language logging in TextClassifier/TranslateEvent

Bug: 158481016
Test: atest android.widget.cts.TextViewTest
Test: atest tests/tests/textclassifier/src/android/view/textclassifier/cts
Change-Id: I7e9ea69f67858714a7fd3b0d06ad1b88000999e0
parent a38a553c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -971,7 +971,8 @@ public final class SelectionActionModeHelper {
            return new TextClassifierEvent.LanguageDetectionEvent.Builder(eventType)
                    .setEventContext(classificationContext)
                    .setResultId(classification.getId())
                    .setEntityTypes(language)
                    // b/158481016: Disable language logging.
                    //.setEntityTypes(language)
                    .setScores(score)
                    .setActionIndices(classification.getActions().indexOf(translateAction))
                    .setModelName(model)