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

Commit e18f51f2 authored by Felipe Leme's avatar Felipe Leme
Browse files

Improved logging on CharSequenceTransformation.

Test: m framework

Bug: 113593220

Change-Id: I6860b158decb34cfa0432122baac2a33c756b4f6
parent f0e6794c
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);
    }