ContentCapture: Log the text length for VIEW_APPEARED events.

Helps for matching logs to screen contents while debugging.

Bug: 177687849
Test: manual
Change-Id: Id7e43034843f65f36c9030278728d27ec4f27168
This commit is contained in:
Ahaan Ugale
2021-04-19 22:08:54 -07:00
parent 1aa87efd66
commit 6f4ace91fd

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));