summaryrefslogtreecommitdiff
path: root/services/contentsuggestions
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/contentsuggestions
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/contentsuggestions')
-rw-r--r--services/contentsuggestions/java/com/android/server/contentsuggestions/RemoteContentSuggestionsService.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/contentsuggestions/java/com/android/server/contentsuggestions/RemoteContentSuggestionsService.java b/services/contentsuggestions/java/com/android/server/contentsuggestions/RemoteContentSuggestionsService.java
index 442972a1e477..4b36352bac51 100644
--- a/services/contentsuggestions/java/com/android/server/contentsuggestions/RemoteContentSuggestionsService.java
+++ b/services/contentsuggestions/java/com/android/server/contentsuggestions/RemoteContentSuggestionsService.java
@@ -47,7 +47,8 @@ public class RemoteContentSuggestionsService extends
int userId, Callbacks callbacks,
boolean bindInstantServiceAllowed, boolean verbose) {
super(context, ContentSuggestionsService.SERVICE_INTERFACE, serviceName, userId, callbacks,
- context.getMainThreadHandler(), bindInstantServiceAllowed, verbose,
+ context.getMainThreadHandler(),
+ bindInstantServiceAllowed ? Context.BIND_ALLOW_INSTANT : 0, verbose,
/* initialCapacity= */ 1);
}