OSDN Git Service

Recents in create, uniform item layouts.
authorJeff Sharkey <jsharkey@android.com>
Tue, 6 Aug 2013 23:26:14 +0000 (16:26 -0700)
committerJeff Sharkey <jsharkey@android.com>
Wed, 7 Aug 2013 01:16:21 +0000 (18:16 -0700)
commitb156f4bf8cdfe475a7116b627d84a281e1a281b7
tree537c95d8bcf776de593e5dd9ed02f62445ca7147
parent66516697a29cf00d93893a1011d3befc7c1ee37f
Recents in create, uniform item layouts.

Show recent directories in a separate fragment, and save as serialized
versions of new DirectoryStack. Cleaner behavior around recents and
search, instead of treating them as pseudo-Documents.

More uniform item layouts between list and grid, including both date
and size information, and originating storage root in recents. Avoid
clashing directory loaders by assigning unique numbers. Promote
list/grid switching up into activity.

Change-Id: I9a93460b896067ca036d7e772eeabde31face2e1
16 files changed:
packages/DocumentsUI/AndroidManifest.xml
packages/DocumentsUI/res/layout/fragment_roots.xml
packages/DocumentsUI/res/layout/item_doc_grid.xml
packages/DocumentsUI/res/layout/item_doc_list.xml
packages/DocumentsUI/res/menu/activity.xml
packages/DocumentsUI/res/menu/directory.xml [deleted file]
packages/DocumentsUI/src/com/android/documentsui/DirectoryFragment.java
packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
packages/DocumentsUI/src/com/android/documentsui/MimePredicate.java
packages/DocumentsUI/src/com/android/documentsui/RecentsCreateFragment.java [new file with mode: 0644]
packages/DocumentsUI/src/com/android/documentsui/RecentsProvider.java
packages/DocumentsUI/src/com/android/documentsui/RootsCache.java
packages/DocumentsUI/src/com/android/documentsui/RootsFragment.java
packages/DocumentsUI/src/com/android/documentsui/model/Document.java
packages/DocumentsUI/src/com/android/documentsui/model/DocumentStack.java [new file with mode: 0644]
packages/DocumentsUI/src/com/android/documentsui/model/Root.java