OSDN Git Service

Don't show a custom description if any transformation fail.
authorFelipe Leme <felipeal@google.com>
Tue, 18 Jul 2017 15:58:50 +0000 (08:58 -0700)
committerFelipe Leme <felipeal@google.com>
Wed, 19 Jul 2017 00:40:45 +0000 (17:40 -0700)
commit22101ca5a91e36f56b4d7cab2bb8517f679c6c86
treea1efa9ee522d00bf6c115424519c2fc2cb2efe69
parent906b85371766dd696158557987d9b05dc30583e8
Don't show a custom description if any transformation fail.

That could result in an inconsistent, confusing UI. For example, if the
successfully description for a credit card was "Exp. date: 04/20", one with a
failure could be "Exp. date: /20" - it's better to not show a custom description
in these cases.

Test: CtsAutoFillServiceTestCases pass
Test: CustomDescriptionTest.failFirstFailAll
Test: CustomDescriptionTest.failSecondFailAll

Bug: 62534917

Change-Id: I6554e3470ead2f84d7ef8715192d863c01ab1190
api/test-current.txt
core/java/android/service/autofill/CharSequenceTransformation.java
core/java/android/service/autofill/CustomDescription.java
core/java/android/service/autofill/ImageTransformation.java
core/java/android/service/autofill/InternalTransformation.java