status bar."" with a fix for cts tests.
This reverts commit 0574d169ba1e649d8bd54d28ba74b9707e675e37.
Change-Id: I33deeef839092956a67ec31bcdbfbbd540db8b68
When an app request access to a scoped directory which the user already
denied access, it will display a "Do not ask again" checkbox; if the
user checks that option, further requests will be automatically
rejected.
The history of denials is stored in the shared property file.
The UI is not polished yet, the style will be fixed in a future change.
BUG: 26750152
Change-Id: I181923adfb6a1c7c1c17e305d6838314280417fc
Also, remove "unhide" from Adapter, since it is unused.
Had to add a custom layout because Alert didn't do a
good job. LOTS of work for a yes/no!
Bug: 27205772
Change-Id: Ic20d73b54fd142287e07402877ac339300b4bbb7
In list view...and don't show dir dates, even when present.
In fact, no details on folders at all when in list view.
Also improve layout of files without details (if they exist).
Bug: 27406730
Change-Id: Ida4b5f99666c4a145ca98a3c15c480e59a76b4a6
- Make stuff line up better.
- Visually distinguish root names from their descriptions.
BUG=26793290
Change-Id: Ibb050b205b7dc69415c736486bc3b7deef0b0767
Visually separate directory background from sidebar.
Lower shadows so the "real" effect isn't so prominent.
Hitchhikders:
Consolidate bool values in config.xml files (were in dimens.xml).
Add missing supportsRecents & supportsSearch methods
to RootInfo.
Rename RecentLoader to RecentsLoader so it doesn't defy
searching for "Recents" string.
Move Downloads below the divider.
Change-Id: I06c76e26ec6df6541860a1448865c67ed953ed43
- Turn the DirectoryFragment (DF) and the RootsFragment (RF) into
top-level views, and allow switching between them via the tab key.
- Disallow arrow-key navigation from switching the user between the
DF and RF.
- When nothing is explicitly focused, make navigation keys focus the
DF. This makes it so that if a user opens DocumentsUI and just starts
pressing arrow keys, they'll navigate in the directory listing.
- When restoring focus on the DF and RF, remember the last thing that
was focused, and restore focus on that thing.
BUG=25195767
BUG=25121367
Change-Id: I00e20cbdbe9edfe269fb356440a93ef5d67c5298
(cherry picked from commit 1c9f9222e56482682461013b703590c5c9471018)
Setting android:animateLayoutChanges=true was causing flickering and problems
with sliding the cabinet while a fragment transition was already in progress.
Bug: 27060052
Bug: 26952361
Change-Id: I17e5f8b57d63cd9a586fc70ae43e030c4f232e8d
(cherry picked from commit ed82fd784301c645cb665517edc3006888d6f237)
Since it was almost all redundant (especially the stack stuff).
Ensure "Files" title present on drawer title in Files app.
DocumentsToolBar > DocumentsToolbar to match toolkit naming.
Bug: 26193264
Change-Id: I92c82c66d936aae3ce0f792581daa12898dfadee
- Add recommended ignore properties to lint.xml.
- Make Fragment subclasses public.
- Truncate log tags at 23 chars.
- Fix one instance of passing a color ID instead of a color.
- Misc xml property fixes.
Change-Id: Ie8d6a8932cda72b7a239f6dfab56bd854f909820
- Add a new checkmark icon.
- Modify the grid and list items to include the check icon in the
appropriate location.
- Add code to various DocumentHolder subclasses to cross-fade between
icons when things are selected/deselected.
- Create new dimensions quantities to represent new icon sizes.
- Clean up xml files.
BUG=24326546
Change-Id: Ib3f04c8274d35ac3b95ed13730df340e8b7c36c6
- Add code to restore the mime icon on grid tiles (previously removed
while tile layouts were being worked on).
- Switch mime icons from pngs to vector drawables.
BUG=24326989
Change-Id: I38b54256c6eca79052decadb6d138f658d03b951
- Create a new layout for directory items, which have a different
layout (no thumbnail, size or mod_date).
- Add drop shadows.
Also refactor a few things in the DocumentHolder and child classes to
make things more efficient and cleaner.
BUG=24326989,26229570
Change-Id: I05df52b071667190d4c4c671f50d25498383cdaa
- Cleanup: Set the focusable flag in xml rather than in java.
- Add a border for the currently focused item in grid mode.
BUG=24326989
Change-Id: Ib17e93c377fb6b16bf8a7eccfb213f521d9596f0
- Add a click handler that basically handles all cases (including the
enter key) of Items being clicked.
- Open the focused file in non-select mode, toggle selection if in
selection mode.
- Remove now-redundant onSingleTapUp handlers.
- Redo focus indicator, since it's now possible to toggle selection on
the focused file.
- Don't dismiss selection on arrow-key navigation.
BUG=24705453
BUG=25114155
Change-Id: Iba74188514ecf2bc6b56573087e3c3ccc83f85d2
Add a new top-level CoordinatorLayout to ensure proper operation of the
snackbar.
Switch all Toast code over to use Snackbar.
BUG=24474629
Change-Id: Iafffb35be6115cbac9304fd44e77e73b6be40c17
- Reorganize the directory fragment.
- Repurpose the "empty" view to hold a message and a button.
- Message is set to the "No items" message if a directory is empty.
- Message is set to the error message if a query error occurs.
- Don't close DocumentsUI when a query error occurs.
Change-Id: I4e1e96f23040606b410ac746252dcb0ab9286f04
- Add a material-style horizontal progress bar to DocumentsUI. This
replaces the old loading footer.
- Restore the view-switching code that displayed a dedicated "empty"
view when displaying an empty directory.
- Fix tests.
Change-Id: Ifecb867f6edecbdeb37b8607d87d9797879a589d
- Remove footers from DirectoryFragment.
- Add a new MessageBar fragment that can display error/info messages.
BUG=22638983
Change-Id: I2075ae8e4dca8954a09c1fc57ed62bb6d3bff7a9
- Split all ACTION_MANAGE-related functionality off from
DocumentsActivity, into a new activity.
- Create new full-screen layouts for said activity.
- Fix some styling issues in {Documents,Files}Activity.
Change-Id: I0384715ad3c7d70a3a3daf510f1a09e8c5732348