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

Commit e5faf324 authored by Haoran Zhang's avatar Haoran Zhang
Browse files

[Autofill Framework] Remove confusing logs of AFAA

In local, logcat would print the activity name before the log so developer knows which activity is denied. But in bug report, the line doesn't have an activity name so sometimes developer looking would think autofill is denying the activity while in fact, another activity is denied. Most of the times the denied activity is the launcher activity.

Bug: b/328126985
Test: atest CtsAutoFillServiceTestCases
Change-Id: If810e21a598a26b7a10548b915ef7f581e151bd7
parent 60b4c24d
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1157,12 +1157,10 @@ public final class AutofillManager {

        // denylist only applies to not important views
        if (!view.isImportantForAutofill() && isActivityDeniedForAutofill()) {
            Log.d(TAG, "view is not autofillable - activity denied for autofill");
            return false;
        }

        if (isActivityAllowedForAutofill()) {
            Log.d(TAG, "view is autofillable - activity allowed for autofill");
            return true;
        }