OSDN Git Service

Hide Autofill UI when non-savable id is gone.
authorFelipe Leme <felipeal@google.com>
Thu, 18 May 2017 22:24:11 +0000 (15:24 -0700)
committerFelipe Leme <felipeal@google.com>
Tue, 23 May 2017 17:46:24 +0000 (10:46 -0700)
commit27e202208b42e78fefcece893a4bb5d8fe2eae58
tree8aa6ee8c12718bee967a58a29182db7f5590cfc6
parent3afc07ae7b86e9a0744573584772c673681639ad
Hide Autofill UI when non-savable id is gone.

AutofillManager keeps track of which views the AutofillServiec is interested to
save, so when these views are gone, the session is finished.

But when the AutofillService returns a dataset whose views it can not save,
the FillUi for these views are not hiding when the views are gone. This CL
fixes this issue by:

- Keeping track which non-savable views should be tracked.
- Pass the view (instead of it's id) when the UI on such views should be hid.

This CL also optimized some AIDL and internal calls by avoiding the creating of
unnecessary Lists.

Test: manual verification with Snapchat
Test: existing CtsAutoFillServiceTestCases pass
Test: new tests on MultipleFragmentLoginTest pass

Fixes: 38199452
Change-Id: I78fa357962dbc6667146d8e08cd6bacb63e0f337
core/java/android/app/Activity.java
core/java/android/view/autofill/AutofillManager.java
core/java/android/view/autofill/IAutoFillManagerClient.aidl
services/autofill/java/com/android/server/autofill/Helper.java
services/autofill/java/com/android/server/autofill/Session.java