Merge "Fix sharesheet timeout by sending CreatePredictionSession request immediately instead of pushing it to the main thread Looper queue. CreatePredictionSession request is latency-sensitive.Its sendImmediately flag was flipped to be false accidentally in I937cdaa6081d2b85d27ee0192f6af7f197b8e102." into sc-dev

This commit is contained in:
Song Hu
2021-08-06 19:49:02 +00:00
committed by Android (Google) Code Review

View File

@@ -125,7 +125,7 @@ public class AppPredictionPerUserService extends
// connect with remote AppPredictionService instead for dark launch
usesPeopleService = false;
}
final boolean serviceExists = resolveService(sessionId, false,
final boolean serviceExists = resolveService(sessionId, true,
usesPeopleService, s -> s.onCreatePredictionSession(context, sessionId));
if (serviceExists && !mSessionInfos.containsKey(sessionId)) {
final AppPredictionSessionInfo sessionInfo = new AppPredictionSessionInfo(