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

Commit d54f6552 authored by Svet Ganov's avatar Svet Ganov Committed by android-build-merger
Browse files

Merge "Also check if view visible to user before engaging fill" into oc-dev

am: f0de5cdd

Change-Id: I4bc8da5708af987721647eb50a4968db5034cd94
parents 57201482 f0de5cdd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6844,7 +6844,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
        if (isAutofillable() && isAttachedToWindow()) {
            AutofillManager afm = getAutofillManager();
            if (afm != null) {
                if (enter && hasWindowFocus() && isFocused()) {
                if (enter && hasWindowFocus() && isFocused() && isVisibleToUser()) {
                    afm.notifyViewEntered(this);
                } else if (!hasWindowFocus() || !isFocused()) {
                    afm.notifyViewExited(this);