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

Commit 4dc4c3ae authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Improved logging on CharSequenceTransformation."

parents 14f5e6c5 e18f51f2
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -90,7 +90,7 @@ public final class CharSequenceTransformation extends InternalTransformation imp
            try {
                final Matcher matcher = field.first.matcher(value);
                if (!matcher.find()) {
                    if (sDebug) Log.d(TAG, "match for " + field.first + " failed on id " + id);
                    if (sDebug) Log.d(TAG, "Match for " + field.first + " failed on id " + id);
                    return;
                }
                // replaceAll throws an exception if the subst is invalid
@@ -103,6 +103,9 @@ public final class CharSequenceTransformation extends InternalTransformation imp
                throw e;
            }
        }
        // Cannot log converted, it might have PII
        Log.d(TAG, "Converting text on child " + childViewId + " to " + converted.length()
                + "_chars");
        parentTemplate.setCharSequence(childViewId, "setText", converted);
    }