diff options
author | Michal Karpinski <mkarpinski@google.com> | 2019-03-25 20:37:57 +0000 |
---|---|---|
committer | Michal Karpinski <mkarpinski@google.com> | 2019-03-26 11:07:33 +0000 |
commit | 322df0bb7409c79a3ad8faa285096af1d884b29f (patch) | |
tree | 5c1b3bdb48076c5166189e00d25d32ddb8e9e137 /services/contentsuggestions | |
parent | 356c5dfd420331434e893f852ee3ac3f307a3c40 (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.java | 3 |
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); } |