summaryrefslogtreecommitdiff
path: root/services/contentcapture
diff options
context:
space:
mode:
authorFelipe Leme <felipeal@google.com>2019-03-13 10:57:09 -0700
committerFelipe Leme <felipeal@google.com>2019-03-13 22:00:14 -0700
commit73e65ba47e613d453e4b69587f5035d21985190c (patch)
treec28432dc2229f23cbb4c29fa792f0a546b248c88 /services/contentcapture
parentd55e1b17887f4b23b48234eaae1a5e879190992d (diff)
Keep ContentCapturePerUserService alive while the package is being updated.
Test: manual verification (cannot be tested using CTS because it would kill the test process) Test: atest CtsContentCaptureServiceTestCases Bug: 126266412 Fixes: 128466656 Change-Id: I73e89f41b58615070c38103fa2f1fa04ac015dca
Diffstat (limited to 'services/contentcapture')
-rw-r--r--services/contentcapture/java/com/android/server/contentcapture/ContentCaptureManagerService.java2
1 files changed, 1 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 c75b4c6f113c..9995d8e4d893 100644
--- a/services/contentcapture/java/com/android/server/contentcapture/ContentCaptureManagerService.java
+++ b/services/contentcapture/java/com/android/server/contentcapture/ContentCaptureManagerService.java
@@ -115,7 +115,7 @@ 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);
+ UserManager.DISALLOW_CONTENT_CAPTURE, /* refreshServiceOnPackageUpdate=*/ false);
DeviceConfig.addOnPropertyChangedListener(DeviceConfig.NAMESPACE_CONTENT_CAPTURE,
ActivityThread.currentApplication().getMainExecutor(),
(namespace, key, value) -> onDeviceConfigChange(key, value));