OSDN Git Service

Correct lastId on onCreate with unexpected state
authorPhilip P. Moltmann <moltmann@google.com>
Mon, 19 Jun 2017 19:57:13 +0000 (12:57 -0700)
committerPhilip P. Moltmann <moltmann@google.com>
Mon, 19 Jun 2017 23:57:38 +0000 (23:57 +0000)
commite78c771cf5fdb6511635ebf56096296f13504ab0
treef0c8aa9218e95028908fe3f93e3e1a1f6ceabbcb
parentfa791d5e97b9d5efd38d944f347b48aeb338b0e2
Correct lastId on onCreate with unexpected state

onCreate might be called with a state not produced by
onSaveInstanceState. In this case the last autofill ID is not set, so we
incorrectly restore it to NO_ID instead of LAST_APP_AUTOFILL_ID

Change-Id: Id40c06bf223c0e3c6235b2d50779e3f4532898b5
Fixes: 62296699
Test: cts-tradefed run cts-dev -m CtsAutoFillServiceTestCases
(cherry picked from commit 1266d08be53c6ee2494d18363092c68825ef449e)
core/java/android/app/Activity.java