ContentCaptureEvent: Log composing and selection indices

Bug: 184311217
Test: manual
Change-Id: I808021473fe55bf2f0676c005bc0c077146a6785
This commit is contained in:
Ahaan Ugale
2021-06-14 23:12:05 -07:00
parent 5c80e3491d
commit d224da0ed4

View File

@@ -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();
}