diff options
author | Robert Berry <robertberry@google.com> | 2019-03-18 16:33:42 -0400 |
---|---|---|
committer | Robert Berry <robertberry@google.com> | 2019-04-03 20:41:03 -0400 |
commit | e14120edf2cb2251b5ece810ef38eaadd27bc46d (patch) | |
tree | dc55ee0ef5412649d6a7fbeee1fe464b9b9d326f /services/contentcapture/java | |
parent | 259c73c00704a48fe25505546ce4f721eb40de9b (diff) |
Add system captions manager service
This service connects to a remote system captions manager service. This
service is responsible for enabling system captions when the user
requests them. As the system binds to it, this service will be
persistent.
Bug: 128925852
Test: Manual. I created an implementation of the service.
Change-Id: Iafde1bb68f4754d8167624f47c6833d43c0ec336
Diffstat (limited to 'services/contentcapture/java')
-rw-r--r-- | services/contentcapture/java/com/android/server/contentcapture/ContentCaptureManagerService.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/contentcapture/java/com/android/server/contentcapture/ContentCaptureManagerService.java b/services/contentcapture/java/com/android/server/contentcapture/ContentCaptureManagerService.java index 9b02c4e72cfc..757c2dc7f6f1 100644 --- a/services/contentcapture/java/com/android/server/contentcapture/ContentCaptureManagerService.java +++ b/services/contentcapture/java/com/android/server/contentcapture/ContentCaptureManagerService.java @@ -129,7 +129,8 @@ public final class ContentCaptureManagerService extends public ContentCaptureManagerService(@NonNull Context context) { super(context, new FrameworkResourcesServiceNameResolver(context, com.android.internal.R.string.config_defaultContentCaptureService), - UserManager.DISALLOW_CONTENT_CAPTURE, /* refreshServiceOnPackageUpdate= */ false); + UserManager.DISALLOW_CONTENT_CAPTURE, + /*packageUpdatePolicy=*/ PACKAGE_UPDATE_POLICY_NO_REFRESH); DeviceConfig.addOnPropertyChangedListener(DeviceConfig.NAMESPACE_CONTENT_CAPTURE, ActivityThread.currentApplication().getMainExecutor(), (namespace, key, value) -> onDeviceConfigChange(key, value)); |