Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e1a1e04a authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Adding verbose check on handleSendEvent logs to avoid spamming logcat"...

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

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15097389

Change-Id: I59cfd4d39e9241623ceb8d70ae03f2078568e5f8
parents 7e7c4a59 e58df6d4
Loading
Loading
Loading
Loading
+5 −3
Original line number Original line Diff line number Diff line
@@ -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?)
            if (sVerbose) {
                Log.v(TAG, "handleSendEvent(" + getDebugState() + ", "
                Log.v(TAG, "handleSendEvent(" + getDebugState() + ", "
                        + ContentCaptureEvent.getTypeAsString(eventType)
                        + ContentCaptureEvent.getTypeAsString(eventType)
                        + "): dropping because session not started yet");
                        + "): dropping because session not started yet");
            }
            return;
            return;
        }
        }
        if (mDisabled.get()) {
        if (mDisabled.get()) {