Merge "Adding verbose check on handleSendEvent logs to avoid spamming logcat" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-06-25 08:01:42 +00:00
committed by Android (Google) Code Review

View File

@@ -323,9 +323,11 @@ public final class MainContentCaptureSession extends ContentCaptureSession {
if (!hasStarted() && eventType != ContentCaptureEvent.TYPE_SESSION_STARTED if (!hasStarted() && eventType != ContentCaptureEvent.TYPE_SESSION_STARTED
&& eventType != ContentCaptureEvent.TYPE_CONTEXT_UPDATED) { && eventType != ContentCaptureEvent.TYPE_CONTEXT_UPDATED) {
// TODO(b/120494182): comment when this could happen (dialogs?) // TODO(b/120494182): comment when this could happen (dialogs?)
Log.v(TAG, "handleSendEvent(" + getDebugState() + ", " if (sVerbose) {
+ ContentCaptureEvent.getTypeAsString(eventType) Log.v(TAG, "handleSendEvent(" + getDebugState() + ", "
+ "): dropping because session not started yet"); + ContentCaptureEvent.getTypeAsString(eventType)
+ "): dropping because session not started yet");
}
return; return;
} }
if (mDisabled.get()) { if (mDisabled.get()) {