summaryrefslogtreecommitdiff
path: root/services/contentcapture
diff options
context:
space:
mode:
authorRobert Berry <robertberry@google.com>2019-03-18 16:33:42 -0400
committerRobert Berry <robertberry@google.com>2019-04-07 15:09:06 +0000
commit835123dba260548fdcd8610f71fb60c8440d0a5a (patch)
tree18bde0464c54efe57466bcab9a904fb560f117e5 /services/contentcapture
parent02cca81c10665fcd5dcd8cbdad6b16ca0f2e1e4a (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. Cherry pick from ag/6761232 Bug: 128925852 Test: Manual. I created an implementation of the service. Merged-In: Iafde1bb68f4754d8167624f47c6833d43c0ec336 Change-Id: Iafde1bb68f4754d8167624f47c6833d43c0ec336
Diffstat (limited to 'services/contentcapture')
-rw-r--r--services/contentcapture/java/com/android/server/contentcapture/ContentCaptureManagerService.java3
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));