752 Commits

Author SHA1 Message Date
Steve McKay
e1b924921a Merge "Rename "recyclerView" to "list" fixing some of CTS." 2015-10-10 15:54:20 +00:00
Steve McKay
d20f87dad8 Rename "recyclerView" to "list" fixing some of CTS.
Bug: 24544391
Change-Id: I2ca74e2a007ec733092d4cb3f84b40c64392c766
2015-10-10 15:53:26 +00:00
Jeff Sharkey
38f4313707 am 386d7900: am e0210648: am a0ef1048: am d473a144: Merge "Hold wake-lock during copy operations." into mnc-dr-dev
* commit '386d7900467ca52d48daf70d07498f10ae48aa80':
  Hold wake-lock during copy operations.
2015-10-08 17:29:50 +00:00
Jeff Sharkey
e0210648d8 am a0ef1048: am d473a144: Merge "Hold wake-lock during copy operations." into mnc-dr-dev
* commit 'a0ef104882b1a0edd79badb2f327cc8722f76bb2':
  Hold wake-lock during copy operations.
2015-10-08 17:09:29 +00:00
Jeff Sharkey
a0ef104882 am d473a144: Merge "Hold wake-lock during copy operations." into mnc-dr-dev
* commit 'd473a1446e520616c4079594bbcf3c6fbe88ed4f':
  Hold wake-lock during copy operations.
2015-10-08 17:02:38 +00:00
Ben Kwa
c91300490c Merge "Implement Home and End key navigation in DocumentsUI." 2015-10-07 21:18:43 +00:00
Geoff Mendal
b5e171529d Import translations. DO NOT MERGE
Change-Id: I93f82678f52420dcbaf1cd8850d76429a9c6679d
Auto-generated-cl: translation import
2015-10-07 05:25:12 -07:00
Ben Kwa
0ee0f9a02d Implement Home and End key navigation in DocumentsUI.
Add a handler to shift focus to the first and last files when the home
and end keys (respectively) are pressed.

BUG=24682598

Change-Id: I82db67d0d0f8292b1dad966defa68800496d59f2
2015-10-06 11:12:14 -07:00
Ben Kwa
f91869deac Merge "Use app compat theme for DocsActivity." 2015-10-06 01:13:25 +00:00
Steve McKay
32b96e1110 Use app compat theme for DocsActivity.
This make things super UGLAY, but unbreaks them.

Bug:24544391
Change-Id: Id91e7b41cab08f1158f4821fa75be9b3ad79a428
2015-10-05 17:42:05 -07:00
Steve McKay
0651688a33 Merge "Don't explicitly foreground tasks." 2015-10-05 22:07:28 +00:00
Ben Kwa
44c44f7b37 Merge "DocumentsUI: Enable focus on directory contents." 2015-10-05 22:00:30 +00:00
Steve McKay
c2dbc74942 Don't explicitly foreground tasks.
Get out of the way of documentLaunchMode, let ActivityManager do the work for us.
Quiet some noisy logging.

Bug: 24413182
Change-Id: Ia48244871296f5c6b83a838dcde6496acbd45793
2015-10-05 14:49:16 -07:00
Ben Kwa
641d53a7eb DocumentsUI: Enable focus on directory contents.
- 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
2015-10-05 14:33:09 -07:00
Geoff Mendal
21abf4c6f6 Import translations. DO NOT MERGE
Change-Id: I45ea38ee24c31b6144f99f8b7239200c1f870fbb
Auto-generated-cl: translation import
2015-10-05 05:19:25 -07:00
Steve McKay
5bbae10c4c Normalize and improve menu fiddling.
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
2015-10-02 09:48:27 -07:00
Jeff Sharkey
3c12a7c6d7 Hold wake-lock during copy operations.
If the CPU goes to sleep during the copy, certain devices will
collapse the USB OTG power domain, which can cause user data loss.

Bug: 24574575
Change-Id: I8e26caac8784490d2dee324b38e6085cd55eb8bb
2015-10-02 08:55:22 -07:00
Steve McKay
8359eaafa2 Merge "Provide previous stack when opening new window." 2015-10-01 17:48:41 +00:00
Ben Kwa
a4a28f1f7a Merge "Consolidate unit tests." 2015-09-30 22:19:56 +00:00
Ben Kwa
272c02041c Consolidate unit tests.
- Move all unit tests to be run under the android framework.
- Add a unit test for ag/776629
- Make DirectoryFragment.Model tests properly simulate finalization conditions.

Change-Id: Ie33d097154d464149fd8c0c24bf66ada677db4ad
2015-09-30 15:12:52 -07:00
Ben Kwa
cf34ce8e22 Merge "Switch DocumentsUI over from Toasts to Snackbars." 2015-09-30 21:50:34 +00:00
Ben Kwa
94b486d32c Switch DocumentsUI over from Toasts to Snackbars.
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
2015-09-30 14:47:55 -07:00
Ben Kwa
68da5bf488 Merge "Disable productivity mode by default." 2015-09-30 17:03:30 +00:00
Steve McKay
323ee3ec09 Provide previous stack when opening new window.
EXTRA_STACK support was already in place (from CopyService).
Add "isRootUri" to DocumentsContract.

Bug: 24410611
Change-Id: Ia380030216323d1272ef247280582e4b55b83c42
2015-09-29 16:59:11 -07:00
Ben Kwa
7a52b6b70b Disable productivity mode by default.
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
2015-09-28 15:54:27 -07:00
Baligh Uddin
f48b491d4e Merge "Import translations. DO NOT MERGE" 2015-09-27 03:05:22 +00:00
Baligh Uddin
b51a47dc6e Import translations. DO NOT MERGE
Change-Id: Ideadb94b604cb761566eb1f0d46bc88a9e411380
Auto-generated-cl: translation import
2015-09-25 22:39:56 -07:00
Steve McKay
9f9d5b432d Add support for opening multiple windows.
Installs an intermediate activity that manages tasks.

Bug: 20562850
Change-Id: If2d0a125b0630c27af07666b0f6a712f58243e9f
2015-09-25 14:46:14 -07:00
Ben Kwa
6fd4f7f7c3 Merge "Activate selection mode when selecting via mouse." 2015-09-25 14:58:42 +00:00
Ben Kwa
bd7da4c44e Activate selection mode when selecting via mouse.
Modify the MultiSelectManager so that toggling selection on an item
notifies listeners of selection changes, if necessary.  This fixes a bug
where notifySelectionChanged wasn't getting called when the selection
changed.

BUG=23944862

Change-Id: I3aef41cc92c560dc15bdc0fe310c340bdb3005f6
2015-09-25 07:47:56 -07:00
Steve McKay
ecfbd3edcf Merge "Move State to a separate file." 2015-09-25 04:59:31 +00:00
Steve McKay
2fbe728069 Merge "Show empty roots except for content pickers." 2015-09-24 23:18:26 +00:00
Steve McKay
0200e34637 Show empty roots except for content pickers.
Bug: 24140864

Change-Id: I9fae80a1e3d413e97ee099bee9c59f81f713cf27
2015-09-24 16:16:43 -07:00
Ben Kwa
32a5776039 Merge "Fix a crash when deleting documents." 2015-09-24 23:13:42 +00:00
Ben Kwa
8923911c69 Fix a crash when deleting documents.
Deleting (and moving) documents invalidates previous selections, as
items change position.  Exit selection mode *before* actually deleting
anything, otherwise we end up trying to unselect potentially deleted
documents.

BUG=24338150

Change-Id: I79fb0c156142b78987be68560c78306f2678c521
2015-09-24 16:01:13 -07:00
Ben Kwa
437c507085 Merge "DocumentsUI: Add an error screen to DirectoryFragment." 2015-09-24 22:28:08 +00:00
Ben Kwa
91bec536ac DocumentsUI: Add an error screen to DirectoryFragment.
- 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
2015-09-24 15:06:14 -07:00
Steve McKay
7a3b88cf56 Move State to a separate file.
Update remaining local DEBUG definitions to use Shared.DEBUG.

Change-Id: I3ed4d4b184836da161adff14bd3d9ca01b435847
2015-09-23 17:22:28 -07:00
Steve McKay
83df8c072d Merge BROWSE and BROWSE_ALL actions.
Open Files app when exploring from settings.
Force visibility of file size in this mode.
Don't hide empty media providers.

Bug: 24136618, 24140864
Change-Id: I6f238586725f9b6255812e3082bb8d8655219a7d
2015-09-23 12:25:13 -07:00
Steve McKay
72ae6e0444 Eliminate bad type parameterization.
Change-Id: Id886098926f3c62583f34cfbcc04953bb2f4e8c3
2015-09-23 08:42:39 -07:00
Baligh Uddin
c5c9bdb08d Import translations. DO NOT MERGE
Change-Id: I7c5c75590f30ee06cd8171bffb04da5073c394dc
Auto-generated-cl: translation import
2015-09-23 01:31:31 -07:00
Steve McKay
c643386e28 Update RecentsCreateView to use RecyclerView.
Move common DirectoryContainerView handling to BaseActivity.

Change-Id: I2c34b23b7050b68999f16e6d7f651c94ea8e47b6
2015-09-22 15:58:15 -07:00
Ben Kwa
91caed80b1 Restore more missing DirectoryFragment functionality.
- 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
2015-09-22 13:24:51 -07:00
Ben Kwa
631509a60f Merge "Replace error/info footers with a message bar." 2015-09-18 20:54:56 +00:00
Ben Kwa
3b19e31e18 Replace error/info footers with a message bar.
- Remove footers from DirectoryFragment.
- Add a new MessageBar fragment that can display error/info messages.

BUG=22638983

Change-Id: I2075ae8e4dca8954a09c1fc57ed62bb6d3bff7a9
2015-09-18 13:53:41 -07:00
Baligh Uddin
ebca452900 Import translations. DO NOT MERGE
Change-Id: Ibf24678007e2bdc2e06c8c1b1f3372cb3d6ccd18
Auto-generated-cl: translation import
2015-09-18 13:51:14 -07:00
Vladislav Kaznacheev
ede5f5480e Handle content URI permissions on drop
Change-Id: I846071f01ecd1eff8e3a54a1806e68e1a4b335d2
2015-09-16 17:35:10 -07:00
Ben Kwa
e0fa3b4693 Merge "Adjust theming for Files mode." 2015-09-15 17:57:46 +00:00
Ben Kwa
7cc80013f3 Adjust theming for Files mode.
- 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
2015-09-15 10:55:22 -07:00
Ben Kwa
5e65d1a991 Merge "Clean up unit tests." 2015-09-12 00:19:44 +00:00