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

Commit 57c56e91 authored by Abodunrinwa Toki's avatar Abodunrinwa Toki Committed by Automerger Merge Worker
Browse files

Merge "Disable language logging in TextClassifier/TranslateEvent" into rvc-dev am: 934df624

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11744901

Change-Id: I0aa43e678345ca9c13742b6aac1b59edc51aa8e2
parents 1650966e 934df624
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)