OSDN Git Service

Overlay a highlight over autofilled views
authorPhilip P. Moltmann <moltmann@google.com>
Mon, 27 Mar 2017 16:55:30 +0000 (09:55 -0700)
committerPhilip P. Moltmann <moltmann@google.com>
Thu, 6 Apr 2017 03:57:54 +0000 (03:57 +0000)
commitb42d133c8b7f4af04d3a4349c952d437769f14e1
treec2e27ebd35b635ceabb8bd07d5c20bceb8d86fce
parent630671a60320cc8d551a3fe029456fa94d05839f
Overlay a highlight over autofilled views

Also clear this overlay once the data changes. Some views call
notifyValueUpdated even if the value did not change. Hence remeber the
data that was autofilled and check if the data really changed.

Make the autofilledDrawable publicly accessible so that virtual views
can use the same UI.

As the activity is not aware that the views were autofilled the state
has to be explicitly persisted over activity lifecycle events as part
of the view. The lifecyle does not work yet as the AutofillIds are not
stable over activity lifecycle events.

Fixes: 34946006
Test: Autofilled and changed all supported views.
      cts-tradefed run cts-dev -m CtsUiRenderingTestCases
Change-Id: I58b105bb221f1b6466dd136dfe5062d3babb5aa8
api/current.txt
api/system-current.txt
api/test-current.txt
core/java/android/app/Activity.java
core/java/android/view/View.java
core/java/android/view/autofill/AutofillManager.java
core/java/android/view/autofill/ParcelableMap.java [new file with mode: 0644]
core/res/res/drawable/autofilled_highlight.xml [new file with mode: 0644]
core/res/res/values/colors.xml
core/res/res/values/public.xml
core/res/res/values/symbols.xml