Update FilesActivityUiTests to verify Home is present
and that clicking a root sets the title accordingly.
Guard addition of WRITABLE flag with a volume test.
Bug: 25147243
Change-Id: Ic20372737cae08a82af0aade0c0dbbd8c22d5f34
- 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
Define the package in config...suitable for setup via overlay.
Undefined by default makes the feature disabled on phones...n stuff.
Fall back to single-file QUICK_VIEW.
Work around 24963914 (for now).
Bug: 24963914
Change-Id: Ia9c5a606d294ae053fd5e60d015f0aa0010eba4f
- Enable the focus bit on grid and list items.
- Add (ugly placeholder) styles so we can see the focused item.
BUG=24677520
Change-Id: I29fc09cd24c67d50f93937030606dbfc64962932
Also, don't show copy/paste menu items (though they can still be invoked via keyboard).
Show copy to /move to instead.
Change-Id: I6e7bdf35bf370ea30d4f12a5a200ad38ff0221f4
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
Productivity mode is a flag that was designed to be enabled only in
andromeda builds. It should not be enabled in the base-level package.
BUG=24474568
Change-Id: I048bae9d3cf8270503cf245ed1e6959dab68571c
- 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
- Bring files mode in line with MD spec platform colors.
- Normalize selection highlight color in grid and table mode.
- Fix status bar and accent colors in portrait mode.
BUG=23797347
BUG=24012021
Change-Id: I3427939b39f3f39f5e04bd4d854166dd6b3881b1
- 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
Add a snackbar that pops up upon deleting files, giving the user a chance to
undo the operation. If the user takes no action, the files are deleted.
This feature basically hides the files temporarily and pops up the said
snackbar, and if the user doesn' hit "undo", the files will be actually
deleted when the snackbar times out.
BUG=23518578
Change-Id: I181395aff967e62ca9287ed6fea2c7c8b8c09a71
Switches from Material to AppCompat themes in order to start using
Snackbar.
Also, factor the common bits out of DocumentsNonDialogTheme and
FilesTheme, and make the theme names clearer.
BUG=23518578
Change-Id: I94a00e910469c57315823ae9df33024f2c7360ee
This makes more space available for content.
Rename all the "Standalone" stuff to just "Files".
Move layout inflation into base class.
Move backbutton > drawer interaction into BaseActivity.
Change-Id: Ie778b323c6e80122389f029be148dd9e0c4bfb6e
Introduce a new GridItem class whose onMeasure method enforces a square
aspect ratio, and use it for rendering items when in grid mode.
Change-Id: Ieda82b644d0155354ee8e4c1dacae4af7436b7aa