summaryrefslogtreecommitdiff
path: root/services/appprediction
diff options
context:
space:
mode:
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
commit322df0bb7409c79a3ad8faa285096af1d884b29f (patch)
tree5c1b3bdb48076c5166189e00d25d32ddb8e9e137 /services/appprediction
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/appprediction')
-rw-r--r--services/appprediction/java/com/android/server/appprediction/RemoteAppPredictionService.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/appprediction/java/com/android/server/appprediction/RemoteAppPredictionService.java b/services/appprediction/java/com/android/server/appprediction/RemoteAppPredictionService.java
index 21088e442212..19226be2e1ca 100644
--- a/services/appprediction/java/com/android/server/appprediction/RemoteAppPredictionService.java
+++ b/services/appprediction/java/com/android/server/appprediction/RemoteAppPredictionService.java
@@ -47,7 +47,8 @@ public class RemoteAppPredictionService extends
RemoteAppPredictionServiceCallbacks callback, boolean bindInstantServiceAllowed,
boolean verbose) {
super(context, serviceInterface, componentName, userId, callback,
- context.getMainThreadHandler(), bindInstantServiceAllowed,
+ context.getMainThreadHandler(),
+ bindInstantServiceAllowed ? Context.BIND_ALLOW_INSTANT : 0,
verbose, /* initialCapacity= */ 1);
}