Merge "ContentCaptureEvent: Log composing and selection indices" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-06-16 08:46:41 +00:00
committed by Android (Google) Code Review

View File

@@ -525,10 +525,13 @@ public final class ContentCaptureEvent implements Parcelable {
string.append(", insets=").append(mInsets); string.append(", insets=").append(mInsets);
} }
if (mComposingStart > MAX_INVALID_VALUE) { if (mComposingStart > MAX_INVALID_VALUE) {
string.append(", hasComposing"); string.append(", composing=[")
.append(mComposingStart).append(",").append(mComposingEnd).append("]");
} }
if (mSelectionStartIndex > MAX_INVALID_VALUE) { if (mSelectionStartIndex > MAX_INVALID_VALUE) {
string.append(", hasSelection"); string.append(", selection=[")
.append(mSelectionStartIndex).append(",")
.append(mSelectionEndIndex).append("]");
} }
return string.append(']').toString(); return string.append(']').toString();
} }