Removed value from AutoFillManager.virtualFocusChanged().
BUG: 31001899 Test: manual verification Test: CtsAutoFillServiceTestCases passes Change-Id: I71c9f9b4b02b210121a1d15860c3c7172d26a62d
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user