565 Commits

Author SHA1 Message Date
Steve McKay
efa1761776 Decouple SD card from ADVANCED storage toggle.
A variety of related fixes:
- don't force size enable when browsing from device mounted notifications.
- don't show settings menu item as action (put in overflow).
- add sd card icon (not quite yet used, need to suss that out).

Bug:26880985,26883578,26771127
Change-Id: I36f153c42217f8092f157ded2a756c02525593ab
2016-02-02 09:28:30 -08:00
Geoff Mendal
9eb94d7173 Import translations. DO NOT MERGE
Change-Id: I67ade5e23bfdea3b831bcdf4868456e27d735ff0
Auto-generated-cl: translation import
2016-02-01 05:18:12 -08:00
Steve McKay
5fe5c458dc Files always visible, same for new window menu.
Remove "productivity_device" bit.

Change-Id: I28ee3e210fc5f8c367d45a74edab0e04667ddd5e
2016-01-28 11:43:08 -08:00
Tomasz Mikolajewski
748ea8cc78 Show a warning notification and a dialog in case of conversion when copying.
Change-Id: I451b0944069deb5f0b49b54c514e7761be449e3d
2016-01-28 13:12:55 +09:00
Steve McKay
0bbf302573 Merge "Remove variants of "show/hide" internal storage string." 2016-01-27 19:47:50 +00:00
Steve McKay
de3f4c89ca Merge "Revert "Eliminate the "productivity_device" setting."" 2016-01-27 19:25:07 +00:00
Steve McKay
8fa9ffcdc0 Revert "Eliminate the "productivity_device" setting."
This reverts commit d0a0fc2cd1fbb629f329cf10e0413a674a8e54b6.

Missed a use. Prema-revert.

Change-Id: I6bce595646e2e2bf1e506388a2da9e1cd8f61a09
2016-01-27 19:24:25 +00:00
Ben Kwa
3ca3a3db5e Merge "Eliminate the "productivity_device" setting." 2016-01-27 18:48:01 +00:00
Felipe Leme
10f673a2ff Merge "Initial implementation of OPEN_EXTERNAL_DIRECTORY." 2016-01-27 16:56:20 +00:00
Felipe Leme
b012f913cb Initial implementation of OPEN_EXTERNAL_DIRECTORY.
It opens a an alert dialog that tells user application X is requesting
access to folder Y on volume Z; if user accepts, it returns the proper
URI, otherwise it returns RESULT_CANCELED.

The requested path must satisfy the following requirements:

1.It's directory (getName()) must be one of the pre-definied folders on
  Environment.
2.It's root (getParent()) must be a valid external storage root.

In order to satisfy #2, DocumentsUI calls the ExternalStorageProvider,
through a custom call() implementation.

BUG:  23011462
Change-Id: I8e491e82ae320df88f7b8923286c4c1ad050ae80
2016-01-27 08:52:58 -08:00
Geoff Mendal
470771a45a Import translations. DO NOT MERGE
Change-Id: I6cbd18ec0b96f7036a7b62b18702c649b3997416
Auto-generated-cl: translation import
2016-01-27 05:18:39 -08:00
Steve McKay
e3a798c559 Remove variants of "show/hide" internal storage string.
Bug: 26768708
Change-Id: I62a5068eab3104ab379bb0f22a609b9cf0b6777b
2016-01-26 17:45:35 -08:00
Steve McKay
d0a0fc2cd1 Eliminate the "productivity_device" setting.
Files will be available  to all in N.

Change-Id: I964b581c06dea6dfa848624c36566090544509f1
2016-01-26 16:58:12 -08:00
Ben Kwa
bae1c3482c Merge "Temporarily fix directory tile heights in grid mode." 2016-01-26 18:11:44 +00:00
Ben Kwa
70921871ba Temporarily fix directory tile heights in grid mode.
BUG=26760493

Change-Id: I118e30cdf3892ef6857735f4a4f69a128b3f1c36
2016-01-26 10:08:24 -08:00
Tomasz Mikolajewski
b7cf50cb95 Merge "Remove retry logic from DocumentsUI." 2016-01-26 04:52:59 +00:00
Geoff Mendal
4ff50f02fd Import translations. DO NOT MERGE
Change-Id: I8f438e455cdd8053c92304766b84d327fd83ee9e
Auto-generated-cl: translation import
2016-01-25 05:20:39 -08:00
Tomasz Mikolajewski
af231f0a67 Remove retry logic from DocumentsUI.
Bug: 26720030
Change-Id: I041caeed7243614e20d92e1bb3308f564f6aae34
2016-01-25 17:25:20 +09:00
Steve McKay
8d4d5c1c20 Merge "Change "touch" to "tap"." 2016-01-22 23:46:17 +00:00
Steve McKay
9814a1a62e Change "touch" to "tap".
Bug: 26744850
Change-Id: I2f0f0c817ea40de4fbc6ef21e68ccbde293d3135
2016-01-22 15:44:49 -08:00
Aga Wronska
31f97bc4ee Merge "Add support for renaming documents" 2016-01-22 23:26:35 +00:00
Aga Wronska
3b327ef9f9 Add support for renaming documents
- Add rename dialog
- Add rename menu option
- Enable rename menu option only when renaming supported
- Rename files and directories
- Present error message if renaming fails

Bug: 20493815
Change-Id: Ic7386d14e3876655fb19245b9a90b4c67a4febb4
2016-01-22 13:36:40 -08:00
Steve McKay
9ed88a4da7 Show empty file cabinet for no search results.
And for empty directory.

Magic-submit? Yes please!

Change-Id: If9e1f8ab48eebd9c275ad043da728e28b850ab73
2016-01-22 11:59:16 -08:00
Steve McKay
3564543e1e Move delete support into FileOperationService.
Refactor Jobs to work with files from multiple providers.
Don't shut down threadpool until service#onDestroy is called.

Bug: 26696797, 26462789, 26567205, 25162803, 26714663
Change-Id: Id43e8e3dc2294cd07dcd6a3477b19efb298c260f
2016-01-21 12:16:04 -08:00
Ben Kwa
e2610c4148 Merge "Swap in the correct home icon." 2016-01-14 17:19:36 +00:00
Ben Kwa
33a610dea7 Swap in the correct home icon.
BUG=25793423

Change-Id: I55ef5fbc6d6c1497ef4b761f3af236ba5e7e6bbe
2016-01-14 08:21:05 -08:00
Ben Kwa
b0fed2b72e Merge "Embiggen the progress bar." 2016-01-12 21:56:39 +00:00
Ben Kwa
a66cebde23 Embiggen the progress bar.
BUG=26159818

Change-Id: I12a33be503dd29d03cb85b814b287879c016275d
2016-01-12 13:36:44 -08:00
Steve McKay
76be620a6f Grid view padding + explicit background.
Also move section break holder into the wrapper class.

Change-Id: I949e81af180f11514aff558615cfeda44cb96a3c
2016-01-12 11:41:26 -08:00
Aga Wronska
d3b8e52009 Merge "Keep Search View visible after search completed Improve Search View behavior Add Search View background color" 2016-01-11 23:05:43 +00:00
Aga Wronska
97831485e7 Keep Search View visible after search completed
Improve Search View behavior
Add Search View background color

Bug:26143355
Change-Id: Ifdc4bfff56fc6244c571dfbeff4179e1515d53b7
2016-01-11 14:58:18 -08:00
Ben Kwa
ddc3d21ef9 Add checkmark icons for selection.
- 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
2016-01-07 19:05:32 -08:00
Ben Kwa
91430f1adf Reinstate mime icons on grid tiles.
- 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
2016-01-06 12:15:49 -08:00
Geoff Mendal
41a324ebea Import translations. DO NOT MERGE
Change-Id: Icd9c16ad1f8cad8f53a99a1b7a4d7ca73510881d
Auto-generated-cl: translation import
2016-01-06 05:20:03 -08:00
Aga Wronska
7587fd0094 Change Internal Storage icon from sdcard to smartphone
Bug:26143658
Change-Id: I7663a477c8e90e89f8f5dbed1b6f2c1f83e929d1
2016-01-04 12:53:18 -08:00
Geoff Mendal
8dd3dbae67 Import translations. DO NOT MERGE
Change-Id: Ib6ebdd5bbdb5d5186533ca875ed0d2f69e31f7c1
Auto-generated-cl: translation import
2015-12-23 05:18:27 -08:00
Ben Kwa
ff491d6b36 Merge "Adjust grid margins to match mocks." 2015-12-23 01:13:03 +00:00
Ben Kwa
a108e7e426 Merge "Update grid items to look more like the mocks." 2015-12-23 01:11:12 +00:00
Ben Kwa
cd41fb837d Adjust grid margins to match mocks.
BUG=25560424

Change-Id: I11edfd9585299acb22ca14b518274ae2538a7d01
2015-12-22 17:09:24 -08:00
Ben Kwa
f8a51f6fcb Update grid items to look more like the mocks.
- 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
2015-12-22 14:40:21 -08:00
Steve McKay
c75fa4a5bc Merge "Eliminate dialog mode from DocumentsUI." 2015-12-17 18:29:08 +00:00
Steve McKay
a8f03a2d81 Eliminate dialog mode from DocumentsUI.
DocumentsActivity to Use standard drawer layout at all display resolutions.

Bug: 26208032
Change-Id: I3b93c81bf97045744074a299e92cdea4aae7628d
2015-12-17 09:44:57 -08:00
Geoff Mendal
73b9db9fef Import translations. DO NOT MERGE
Change-Id: I35c5aad9721b849884eff1945406f0ad7af6b0a6
Auto-generated-cl: translation import
2015-12-16 05:28:12 -08:00
Geoff Mendal
7b74e9635e Import translations. DO NOT MERGE
Change-Id: I705d74f3ded09c9279ffafcb82560ca2ddf70bdd
Auto-generated-cl: translation import
2015-12-11 18:30:44 -08:00
Geoff Mendal
7a0a29aa89 Import translations. DO NOT MERGE
Change-Id: Idad1f411e8a8e621ad7c1886ae8eaa03b0d3eb17
Auto-generated-cl: translation import
2015-12-09 05:19:19 -08:00
Geoff Mendal
512c15b8bd Import translations. DO NOT MERGE
Change-Id: If997fb074dbecdcf11d89cb44046be3abf617203
Auto-generated-cl: translation import
2015-12-07 05:17:15 -08:00
Steve McKay
5a24749237 Merge "Fix broken copy after recent copy related chagnes." 2015-12-04 22:29:43 +00:00
Steve McKay
8fd086a18d Fix broken copy after recent copy related chagnes.
Also, add a label to Downloads app, and enabled drag and drop by default.
Cleanued up menu handling in BaseActivity (use switch statement).

Bug: 26033335
Change-Id: I3cef89a4a9f9e30b4e926411e94cf06bc2dc0f8d
2015-12-04 14:24:48 -08:00
Jeff Sharkey
28b41a3bd6 Grr, fix build from a skipped merge.
Change-Id: Id5961399c6057b8d721ad2a858aa91d107b0ab94
2015-12-03 20:06:46 -07:00
Steve McKay
acd29b5c99 Merge "Add "Home" directory support." 2015-11-20 00:01:25 +00:00