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

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

Log when autofill is disabled in a view.

Such log helps diagnosing when app developers explicitly disabled autofill.

Bug: none

Test: manual verification

Change-Id: I829b2c583db4b6513ec877dd868b3e8181a0f266
parent 093daeb9
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -8523,6 +8523,11 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
        }
        if (importance == IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS
                || importance == IMPORTANT_FOR_AUTOFILL_NO) {
            if (Log.isLoggable(AUTOFILL_LOG_TAG, Log.VERBOSE)) {
                Log.v(AUTOFILL_LOG_TAG, "View (autofillId=" +  getAutofillViewId() + ", "
                        + getClass() + ") is not important for autofill because its "
                        + "importance is " + importance);
            }
            return false;
        }