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

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

Merge "Revert "Enable Sharesheet ranking using PeopleService by default to...

Merge "Revert "Enable Sharesheet ranking using PeopleService by default to test in Droidfood"" into rvc-dev am: d48a06e6 am: 63c2169f

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11844206

Change-Id: I4bcd578e41cf82d6b3a618b9dda012dcd450ecf5
parents 5b872661 63c2169f
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));
        }