Merge "Flush Content Capture context updated event immediately" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-06-30 00:49:26 +00:00
committed by Android (Google) Code Review

View File

@@ -773,7 +773,7 @@ public final class MainContentCaptureSession extends ContentCaptureSession {
void notifyContextUpdated(int sessionId, @Nullable ContentCaptureContext context) { void notifyContextUpdated(int sessionId, @Nullable ContentCaptureContext context) {
mHandler.post(() -> sendEvent(new ContentCaptureEvent(sessionId, TYPE_CONTEXT_UPDATED) mHandler.post(() -> sendEvent(new ContentCaptureEvent(sessionId, TYPE_CONTEXT_UPDATED)
.setClientContext(context))); .setClientContext(context), FORCE_FLUSH));
} }
@Override @Override