From d224da0ed43d95661a9cbbf0036c1e85fe0110be Mon Sep 17 00:00:00 2001 From: Ahaan Ugale Date: Mon, 14 Jun 2021 23:12:05 -0700 Subject: [PATCH] ContentCaptureEvent: Log composing and selection indices Bug: 184311217 Test: manual Change-Id: I808021473fe55bf2f0676c005bc0c077146a6785 --- .../android/view/contentcapture/ContentCaptureEvent.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/java/android/view/contentcapture/ContentCaptureEvent.java b/core/java/android/view/contentcapture/ContentCaptureEvent.java index 1b1dc4a709cad..7364742477922 100644 --- a/core/java/android/view/contentcapture/ContentCaptureEvent.java +++ b/core/java/android/view/contentcapture/ContentCaptureEvent.java @@ -522,10 +522,13 @@ public final class ContentCaptureEvent implements Parcelable { string.append(", insets=").append(mInsets); } if (mComposingStart > MAX_INVALID_VALUE) { - string.append(", hasComposing"); + string.append(", composing=[") + .append(mComposingStart).append(",").append(mComposingEnd).append("]"); } if (mSelectionStartIndex > MAX_INVALID_VALUE) { - string.append(", hasSelection"); + string.append(", selection=[") + .append(mSelectionStartIndex).append(",") + .append(mSelectionEndIndex).append("]"); } return string.append(']').toString(); }