Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6f4ace91 authored by Ahaan Ugale's avatar Ahaan Ugale
Browse files

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
parent 1aa87efd
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -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(", id=").append(mNode.getAutofillId());
            if (mNode.getText() != null) {
                string.append(", text=").append(getSanitizedString(mNode.getText()));
            }
        }
        if (mText != null) {
            string.append(", text=").append(getSanitizedString(mText));