summaryrefslogtreecommitdiffstats
path: root/packages/DocumentsUI/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Storage roots in fragment, sectioned.Jeff Sharkey2013-08-069-220/+644
| | | | | | | | | | Move storage roots into a fragment, since it's not a drawer on tablets. Cluster and sort roots when displaying. SectionedListAdapter to make clustered roots easier to manage. Add docs for root types. Move roots cache into separate class to make it easier to share. Change-Id: Ia0b92eade059e816324641f600c08026c0e268c9
* More recents work; filtering and sorting.Jeff Sharkey2013-08-058-336/+852
| | | | | | | | | | | | | | | | Update DirectoryFragment to render List<Document>, making it more general purpose. Feed it documents either from a backend Cursor or after resolving fields from a recents Cursor. Start in recents when no persisted stack available. Synthesize a root for recents. Local directory filtering and sorting using predicates and comparators, all performed on background thread. Introduce UriDerivativeLoader which handles ContentObserver updates while producing a derivative work of a Cursor. Split data model classes into separate files. Change-Id: Idb88b4ee22c58c8e508328e678877f7e4c978533
* Track and persist directory stacks; recents work.Jeff Sharkey2013-08-023-132/+266
| | | | | | | | | | | Move to manual tracking of directory navigation stack so we have Uri data to persist, instead of opaque fragment backstack. Remember directory stacks across launches on a per-app basis. Start recording recently opened and created files. Uniform Uri parameter extraction utility methods in contract. Change-Id: I79ed30ee10272bf7c53d339e797639c993f649bb
* Reference docs by ROOT_ID and DOC_ID; recents.Jeff Sharkey2013-08-024-60/+263
| | | | | | | | | | | The same document may be present with different sematics under multiple storage roots, so always reference using both ROOT_ID and DOC_ID. This enables backends to revoke permissions for an entire root, such as when an account is removed. Start building provider to remember recently accessed documents. Change-Id: I75befa2e61393dec12fcc7fd27f631fcddae46fa
* XML metadata for storage backend; custom icons.Jeff Sharkey2013-08-013-37/+166
| | | | | | | | | | Introduce XML metadata for storage backends, used to indicate if custom roots should be queried, and provide any custom MIME type icons inside that backend. Parse metadata and resolve custom icons in UI. Change-Id: Iec026c0b10845edff7a345d9389691ddf2c87a0e
* Sliding drawer for roots, move sorting, search.Jeff Sharkey2013-07-313-257/+290
| | | | | | | | Move backend root exploration into sliding drawer, and adjust action bar when moving between modes. Moves sorting into action bar spinner instead of separate dialog. Also add initial search support. Change-Id: I70189911ba56ae6bd93d5c503a8600acd6d6c0c5
* Define storage roots, external GUIDs, creation.Jeff Sharkey2013-07-303-28/+156
| | | | | | | | | | | | | | | | | Allow storage backends to publish multiple roots into the UI, which are defined by a directory GUID, type, and label details. Update external provider to surface a primary external storage root, and switch to burning file path into the returned GUIDs so they remain durable. Added insert, update, and delete support to external provider. Adds file extensions to display names when needed to match MIME type. Add flags for searching and deletion, and extras for Cursor pagination. Add directory creation dialog to UI. Opening a document always gives write access. Change-Id: I9bea1aa0dcde909a5ab86aefeece7451ab920cf1
* Support sorting in storage UI.Jeff Sharkey2013-07-013-49/+259
| | | | | | | | | | Extract mode information into DisplayState which is now consistent across directory traversal. Use grid mode by default when working with images. Dialog to switch sort order. Add testing UI to exercise until we have real clients. Change-Id: Ic423584d4559732fb3d2aea9e0406b57d43f6e6d
* Support multi-select in storage UI.Jeff Sharkey2013-07-012-10/+129
| | | | | | | | | | When caller has specified that multiple documents are okay, enable multi-select action mode. Currently only allows document selection, not directories. Returns multiple documents through ClipData. Fix bug where GridView was stuck with 2 columns on tablets. Change-Id: Id49b29a86330639b56fa116d37e7f0d874980c5b
* Iterate on storage UI.Jeff Sharkey2013-07-015-88/+729
| | | | | | | | Support both grid and list view of documents. Show breadcrumb navigation trail in action bar. Start supporting file and directory creation. Change-Id: I93a973da7b0d4387a57fe719e7bb20944adb0290
* External storage provider, document picker UI.Jeff Sharkey2013-05-012-0/+283
Continuing to flesh out storage backends by adding an external storage document backend. Still rough, but it can traverse files and directories. Early pass at OPEN/CREATE_DOC picker UI, which offers to traverse any known storage backends. Supports opening subdirectories and returning a picked file. Change-Id: Idc3554036b3816a93d9b465ee8a620746859d2ae