Merge "Remove translation service feature." into sc-dev am: 279a38e147

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

Change-Id: I387a396331301693d4a6e584d187303f00ce2eef
This commit is contained in:
Joanne Chung
2021-04-12 16:15:56 +00:00
committed by Automerger Merge Worker
4 changed files with 3 additions and 13 deletions

View File

@@ -2528,10 +2528,12 @@ public final class SystemServer implements Dumpable {
}
// Translation manager service
if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_TRANSLATION)) {
if (deviceHasConfigString(context, R.string.config_defaultTranslationService)) {
t.traceBegin("StartTranslationManagerService");
mSystemServiceManager.startService(TRANSLATION_MANAGER_SERVICE_CLASS);
t.traceEnd();
} else {
Slog.d(TAG, "TranslationService not defined by OEM");
}
// NOTE: ClipboardService depends on ContentCapture and Autofill