summaryrefslogtreecommitdiff
path: root/services/appprediction
diff options
context:
space:
mode:
author Song Hu <songhu@google.com> 2020-06-12 00:07:53 +0000
committer Song Hu <songhu@google.com> 2020-06-12 00:12:10 +0000
commit80c1856cf6ddaef8b27f9fd48155d8f796c49c37 (patch)
tree2917e585becaf91665c509640cfb51d70718d64d /services/appprediction
parent2327596f515df2ea9c622477d8cb7c8784ef8bef (diff)
Revert "Enable Sharesheet ranking using PeopleService by default to test in Droidfood"
This reverts commit 2327596f515df2ea9c622477d8cb7c8784ef8bef. Reason for revert: <The flag has been propogated from server side to Droidfood devices> Bug: 157500121 Change-Id: Ic96789cffd6c307147f5a6e279e0729450d4f8c2
Diffstat (limited to 'services/appprediction')
-rw-r--r--services/appprediction/java/com/android/server/appprediction/AppPredictionPerUserService.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/services/appprediction/java/com/android/server/appprediction/AppPredictionPerUserService.java b/services/appprediction/java/com/android/server/appprediction/AppPredictionPerUserService.java
index c021edfda2e4..fdc5f810db22 100644
--- a/services/appprediction/java/com/android/server/appprediction/AppPredictionPerUserService.java
+++ b/services/appprediction/java/com/android/server/appprediction/AppPredictionPerUserService.java
@@ -51,7 +51,7 @@ import java.util.function.Consumer;
*/
public class AppPredictionPerUserService extends
AbstractPerUserSystemService<AppPredictionPerUserService, AppPredictionManagerService>
- implements RemoteAppPredictionService.RemoteAppPredictionServiceCallbacks {
+ implements RemoteAppPredictionService.RemoteAppPredictionServiceCallbacks {
private static final String TAG = AppPredictionPerUserService.class.getSimpleName();
private static final String PREDICT_USING_PEOPLE_SERVICE_PREFIX =
@@ -114,11 +114,8 @@ public class AppPredictionPerUserService extends
public void onCreatePredictionSessionLocked(@NonNull AppPredictionContext context,
@NonNull AppPredictionSessionId sessionId) {
if (!mSessionInfos.containsKey(sessionId)) {
- // TODO(b/157500121): remove below forceUsingPeopleService logic after testing
- // PeopleService for 2 weeks on Droidfood.
- final boolean forceUsingPeopleService = context.getUiSurface().equals("share");
mSessionInfos.put(sessionId, new AppPredictionSessionInfo(sessionId, context,
- forceUsingPeopleService || DeviceConfig.getBoolean(NAMESPACE_SYSTEMUI,
+ DeviceConfig.getBoolean(NAMESPACE_SYSTEMUI,
PREDICT_USING_PEOPLE_SERVICE_PREFIX + context.getUiSurface(), false),
this::removeAppPredictionSessionInfo));
}