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

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

Merge "Removed value from AutoFillManager.virtualFocusChanged()."

parents df643832 7f60d35d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -46828,7 +46828,7 @@ package android.view.autofill {
    method public void focusChanged(android.view.View, boolean);
    method public void reset();
    method public void valueChanged(android.view.View);
    method public void virtualFocusChanged(android.view.View, int, android.graphics.Rect, android.view.autofill.AutoFillValue, boolean);
    method public void virtualFocusChanged(android.view.View, int, android.graphics.Rect, boolean);
    method public void virtualValueChanged(android.view.View, int, android.view.autofill.AutoFillValue);
  }
+1 −1
Original line number Diff line number Diff line
@@ -50247,7 +50247,7 @@ package android.view.autofill {
    method public void focusChanged(android.view.View, boolean);
    method public void reset();
    method public void valueChanged(android.view.View);
    method public void virtualFocusChanged(android.view.View, int, android.graphics.Rect, android.view.autofill.AutoFillValue, boolean);
    method public void virtualFocusChanged(android.view.View, int, android.graphics.Rect, boolean);
    method public void virtualValueChanged(android.view.View, int, android.view.autofill.AutoFillValue);
  }
+1 −1
Original line number Diff line number Diff line
@@ -47141,7 +47141,7 @@ package android.view.autofill {
    method public void focusChanged(android.view.View, boolean);
    method public void reset();
    method public void valueChanged(android.view.View);
    method public void virtualFocusChanged(android.view.View, int, android.graphics.Rect, android.view.autofill.AutoFillValue, boolean);
    method public void virtualFocusChanged(android.view.View, int, android.graphics.Rect, boolean);
    method public void virtualValueChanged(android.view.View, int, android.view.autofill.AutoFillValue);
  }
+3 −6
Original line number Diff line number Diff line
@@ -90,16 +90,13 @@ public final class AutoFillManager {
     * @param parent parent view whose focus changed.
     * @param childId id identifying the virtual child inside the parent view.
     * @param bounds child boundaries, relative to the top window.
     * @param value current value of the child; can be {@code null} when focus is lost, but must be
     *            set when focus is gained.
     * @param gainFocus whether focus was gained or lost.
     */
    public void virtualFocusChanged(View parent, int childId, Rect bounds,
            @Nullable AutoFillValue value, boolean gainFocus) {
    public void virtualFocusChanged(View parent, int childId, Rect bounds, boolean gainFocus) {
        if (mSession == null) {
            // Starts new session.
            final AutoFillId id = getAutoFillId(parent, childId);
            startSession(id, bounds, value);
            startSession(id, bounds, null);
            return;
        }

@@ -110,7 +107,7 @@ public final class AutoFillManager {

        // Update focus on existing session.
        final AutoFillId id = getAutoFillId(parent, childId);
        updateSession(id, bounds, value, gainFocus ? FLAG_FOCUS_GAINED : FLAG_FOCUS_LOST);
        updateSession(id, bounds, null, gainFocus ? FLAG_FOCUS_GAINED : FLAG_FOCUS_LOST);
    }

    /**