Merge "Adding verbose check on handleSendEvent logs to avoid spamming logcat" into sc-dev am: bd661f629e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15097389 Change-Id: I4d5b290685b2cb4f457b9d96148e296045eddc0c
This commit is contained in:
@@ -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()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user