summaryrefslogtreecommitdiff
path: root/services/contentcapture/java
diff options
context:
space:
mode:
authorMichal Karpinski <mkarpinski@google.com>2019-03-25 20:37:57 +0000
committerMichal Karpinski <mkarpinski@google.com>2019-03-26 11:07:33 +0000
commit322df0bb7409c79a3ad8faa285096af1d884b29f (patch)
tree5c1b3bdb48076c5166189e00d25d32ddb8e9e137 /services/contentcapture/java
parent356c5dfd420331434e893f852ee3ac3f307a3c40 (diff)
Modify AbstractRemoteService#mBindInstantServiceAllowed to #mBindingFlags
in order to support multiple binding flags And supply BIND_ALLOW_BACKGROUND_ACTIVITY_STARTS for RemoteFillService. Test: atest CtsAutoFillServiceTestCases Test: atest AutofillManagerServiceTest Bug: 126267782 Change-Id: Id5262d6a4e0fde0ad874020f783cfbf72fe201f4
Diffstat (limited to 'services/contentcapture/java')
-rw-r--r--services/contentcapture/java/com/android/server/contentcapture/RemoteContentCaptureService.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/contentcapture/java/com/android/server/contentcapture/RemoteContentCaptureService.java b/services/contentcapture/java/com/android/server/contentcapture/RemoteContentCaptureService.java
index df9ccbc499ba..0afe252d96bd 100644
--- a/services/contentcapture/java/com/android/server/contentcapture/RemoteContentCaptureService.java
+++ b/services/contentcapture/java/com/android/server/contentcapture/RemoteContentCaptureService.java
@@ -47,7 +47,8 @@ final class RemoteContentCaptureService
ContentCapturePerUserService perUserService, boolean bindInstantServiceAllowed,
boolean verbose, int idleUnbindTimeoutMs) {
super(context, serviceInterface, serviceComponentName, userId, perUserService,
- context.getMainThreadHandler(), bindInstantServiceAllowed, verbose,
+ context.getMainThreadHandler(),
+ bindInstantServiceAllowed ? Context.BIND_ALLOW_INSTANT : 0, verbose,
/* initialCapacity= */ 2);
mPerUserService = perUserService;
mServerCallback = callback.asBinder();