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 20:28:48 +0000 (13:28 -0700)
commit1266d08be53c6ee2494d18363092c68825ef449e
treeeec5835c59443f4309b173d319acc577f95f0e1e
parent2449757333d200b38aa053dac281f0fb12e03864
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
core/java/android/app/Activity.java