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

Commit 8156fb25 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...

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

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

Change-Id: Ic4a05b570af049f5f821c24d8a357c4b797bdf84
parents 99c91156 57c56e91
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)