OSDN Git Service

Use the right ClassLoader when restoring.
authorJeff Sharkey <jsharkey@android.com>
Sat, 6 Feb 2016 00:13:16 +0000 (17:13 -0700)
committerJeff Sharkey <jsharkey@android.com>
Sat, 6 Feb 2016 00:13:21 +0000 (17:13 -0700)
commitba9a4b397f7a8af70d0d412f6a4cb820fff73a7b
treef80b67f511c015f36fc34cc6eff507d05a59b377
parent37355a9f5d1e82c6d3eb3d6c919462373457af4c
Use the right ClassLoader when restoring.

If we're restoring after a background process death, the Parcelable
creator cache is cold, and since we're handing in a null ClassLoader
the best the platform can do is try the default ClassLoader which
knows nothing about the running app.

That's why ClassLoaderCreator exists, so use it to snag the relevant
ClassLoader and pass it along.

Bug: 26075620
Change-Id: I6fd977d6178dd0f5f9c465597f5806a08097ac7c
packages/DocumentsUI/src/com/android/documentsui/State.java