OSDN Git Service

Instance state, fix sharing, Durable objects.
authorJeff Sharkey <jsharkey@android.com>
Mon, 2 Sep 2013 01:41:04 +0000 (18:41 -0700)
committerJeff Sharkey <jsharkey@android.com>
Mon, 2 Sep 2013 01:59:38 +0000 (18:59 -0700)
commitb51331116eb2ebbc41aaf69142916f9af6dffdd5
treeb64f0533ab030ae0c1349fe166b093f716794ace
parent5dfb345df7cb17b3a7e534a80a270b4afe7934da
Instance state, fix sharing, Durable objects.

Remember instance state across configuration changes, and enable
rotation.  This remembers current modes and in-progress traversals.

Always finish action modes after launching an action.  Fix sharing
by always putting Uris in extras, and always wrap in a chooser.  Find
common MIME types when sharing multiple documents.  Fix downloads
launching by following directory MIME type change.

Introduce "Durable" which is like Parcelable, but can be used for
both byte[] storage and Parcel transport.  Make both DocumentInfo
and DocumentStack durable.

Disable recents until new behavior is implemented.

Bug: 1046023610446265105336741045634410456702
Change-Id: I4eaf2b0b4cde611c69a1e7b5f1586f6b02019b27
12 files changed:
packages/DocumentsUI/AndroidManifest.xml
packages/DocumentsUI/res/values/strings.xml
packages/DocumentsUI/src/com/android/documentsui/DirectoryFragment.java
packages/DocumentsUI/src/com/android/documentsui/DirectoryLoader.java
packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
packages/DocumentsUI/src/com/android/documentsui/RecentsCreateFragment.java
packages/DocumentsUI/src/com/android/documentsui/RootsCache.java
packages/DocumentsUI/src/com/android/documentsui/SortingCursorWrapper.java
packages/DocumentsUI/src/com/android/documentsui/model/DocumentInfo.java
packages/DocumentsUI/src/com/android/documentsui/model/DocumentStack.java
packages/DocumentsUI/src/com/android/documentsui/model/Durable.java [new file with mode: 0644]
packages/DocumentsUI/src/com/android/documentsui/model/DurableUtils.java [new file with mode: 0644]