Loading services/appprediction/java/com/android/server/appprediction/AppPredictionPerUserService.java +5 −2 Original line number Diff line number Diff line Loading @@ -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)); } Loading Loading
services/appprediction/java/com/android/server/appprediction/AppPredictionPerUserService.java +5 −2 Original line number Diff line number Diff line Loading @@ -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)); } Loading