Merge "Make sure view.setAutofilled() is called when autofilled by augmented-autofill only." into qt-dev
am: 64f0871ef7
Change-Id: Ibf704b524efae59fc43efebe13442b7e9253d0e3
This commit is contained in:
@@ -3172,6 +3172,7 @@ package android.view {
|
|||||||
|
|
||||||
@UiThread public class View implements android.view.accessibility.AccessibilityEventSource android.graphics.drawable.Drawable.Callback android.view.KeyEvent.Callback {
|
@UiThread public class View implements android.view.accessibility.AccessibilityEventSource android.graphics.drawable.Drawable.Callback android.view.KeyEvent.Callback {
|
||||||
method public android.view.View getTooltipView();
|
method public android.view.View getTooltipView();
|
||||||
|
method public boolean isAutofilled();
|
||||||
method public static boolean isDefaultFocusHighlightEnabled();
|
method public static boolean isDefaultFocusHighlightEnabled();
|
||||||
method public boolean isDefaultFocusHighlightNeeded(android.graphics.drawable.Drawable, android.graphics.drawable.Drawable);
|
method public boolean isDefaultFocusHighlightNeeded(android.graphics.drawable.Drawable, android.graphics.drawable.Drawable);
|
||||||
method protected void resetResolvedDrawables();
|
method protected void resetResolvedDrawables();
|
||||||
|
|||||||
@@ -8852,6 +8852,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
|
|||||||
/**
|
/**
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
|
@TestApi
|
||||||
public boolean isAutofilled() {
|
public boolean isAutofilled() {
|
||||||
return (mPrivateFlags3 & PFLAG3_IS_AUTOFILLED) != 0;
|
return (mPrivateFlags3 & PFLAG3_IS_AUTOFILLED) != 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1204,10 +1204,6 @@ public final class AutofillManager {
|
|||||||
AutofillValue value = null;
|
AutofillValue value = null;
|
||||||
|
|
||||||
synchronized (mLock) {
|
synchronized (mLock) {
|
||||||
if (mForAugmentedAutofillOnly) {
|
|
||||||
if (sVerbose) Log.v(TAG, "notifyValueChanged(): ignoring on augmented only mode");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
// If the session is gone some fields might still be highlighted, hence we have to
|
// If the session is gone some fields might still be highlighted, hence we have to
|
||||||
// remove the isAutofilled property even if no sessions are active.
|
// remove the isAutofilled property even if no sessions are active.
|
||||||
if (mLastAutofilledData == null) {
|
if (mLastAutofilledData == null) {
|
||||||
@@ -1229,6 +1225,13 @@ public final class AutofillManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mForAugmentedAutofillOnly) {
|
||||||
|
if (sVerbose) {
|
||||||
|
Log.v(TAG, "notifyValueChanged(): not notifying system server on "
|
||||||
|
+ "augmented-only mode");
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!mEnabled || !isActiveLocked()) {
|
if (!mEnabled || !isActiveLocked()) {
|
||||||
if (sVerbose) {
|
if (sVerbose) {
|
||||||
Log.v(TAG, "notifyValueChanged(" + view.getAutofillId()
|
Log.v(TAG, "notifyValueChanged(" + view.getAutofillId()
|
||||||
|
|||||||
Reference in New Issue
Block a user