Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9a6be12c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Enable Sharesheet ranking using PeopleService by default to test in...

Merge "Enable Sharesheet ranking using PeopleService by default to test in Droidfood" into rvc-dev am: 68348d03 am: e6cfca1e am: f6c93235

Change-Id: I3e20ef6f47531ff9e04a53b9ceb2b49621f8c00f
parents f6e06e17 f6c93235
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -114,8 +114,11 @@ 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,
                    DeviceConfig.getBoolean(NAMESPACE_SYSTEMUI,
                    forceUsingPeopleService || DeviceConfig.getBoolean(NAMESPACE_SYSTEMUI,
                            PREDICT_USING_PEOPLE_SERVICE_PREFIX + context.getUiSurface(), false),
                    this::removeAppPredictionSessionInfo));
        }