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

Commit 80c1856c authored by Song Hu's avatar Song Hu
Browse files

Revert "Enable Sharesheet ranking using PeopleService by default to test in Droidfood"

This reverts commit 2327596f.

Reason for revert: <The flag has been propogated from server side to Droidfood devices>

Bug: 157500121
Change-Id: Ic96789cffd6c307147f5a6e279e0729450d4f8c2
parent 2327596f
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -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));
        }