Merge "ContentCapture: Log the text length for VIEW_APPEARED events." into sc-dev

This commit is contained in:
TreeHugger Robot
2021-04-20 06:52:18 +00:00
committed by Android (Google) Code Review

View File

@@ -428,10 +428,11 @@ public final class ContentCaptureEvent implements Parcelable {
}
if (mNode != null) {
final String className = mNode.getClassName();
if (mNode != null) {
string.append(", class=").append(className);
}
string.append(", class=").append(className);
string.append(", id=").append(mNode.getAutofillId());
if (mNode.getText() != null) {
string.append(", text=").append(getSanitizedString(mNode.getText()));
}
}
if (mText != null) {
string.append(", text=").append(getSanitizedString(mText));