Merge "Send registerPredictionUpdates request immediately instead of pushing it to the main thread Looper queue." into sc-v2-dev

This commit is contained in:
Song Hu
2021-11-01 23:25:12 +00:00
committed by Android (Google) Code Review

View File

@@ -187,7 +187,7 @@ public class AppPredictionPerUserService extends
@NonNull IPredictionCallback callback) {
final AppPredictionSessionInfo sessionInfo = mSessionInfos.get(sessionId);
if (sessionInfo == null) return;
final boolean serviceExists = resolveService(sessionId, false,
final boolean serviceExists = resolveService(sessionId, true,
sessionInfo.mUsesPeopleService,
s -> s.registerPredictionUpdates(sessionId, callback));
if (serviceExists) {