summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2017-02-08 09:37:18 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2017-02-08 09:37:22 +0000
commit61294f4c8be6afdb8f607d5fac06fd1b08ee340c (patch)
tree0fb2e163530cfe53521ac5ea7fc171c0269ea78e
parentdf6438325f53ab1f57098912f93083d0b03ea3e0 (diff)
parent7f60d35d941335feefe7ae557c07738a1fa45290 (diff)
Merge "Removed value from AutoFillManager.virtualFocusChanged()."
-rw-r--r--api/current.txt2
-rw-r--r--api/system-current.txt2
-rw-r--r--api/test-current.txt2
-rw-r--r--core/java/android/view/autofill/AutoFillManager.java9
4 files changed, 6 insertions, 9 deletions
diff --git a/api/current.txt b/api/current.txt
index f0513fdf8b39..6afa3457f560 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -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);
}
diff --git a/api/system-current.txt b/api/system-current.txt
index 63626718ffd1..ddf921efc344 100644
--- a/api/system-current.txt
+++ b/api/system-current.txt
@@ -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);
}
diff --git a/api/test-current.txt b/api/test-current.txt
index ffa3744f892e..84190cb93a88 100644
--- a/api/test-current.txt
+++ b/api/test-current.txt
@@ -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);
}
diff --git a/core/java/android/view/autofill/AutoFillManager.java b/core/java/android/view/autofill/AutoFillManager.java
index 6c20f0726215..58607ba51579 100644
--- a/core/java/android/view/autofill/AutoFillManager.java
+++ b/core/java/android/view/autofill/AutoFillManager.java
@@ -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);
}
/**