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

Commit 7f60d35d authored by Felipe Leme's avatar Felipe Leme
Browse files

Removed value from AutoFillManager.virtualFocusChanged().

BUG: 31001899

Test: manual verification
Test: CtsAutoFillServiceTestCases passes

Change-Id: I71c9f9b4b02b210121a1d15860c3c7172d26a62d
parent fb0f3602
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -46820,7 +46820,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
@@ -50230,7 +50230,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
@@ -47133,7 +47133,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);
    }

    /**