91 Commits

Author SHA1 Message Date
Ben Kwa
c11f46f416 Merge "Update DocumentUI styles to match mocks." 2015-10-30 15:13:15 +00:00
Ben Kwa
a7e9eb04e2 Update DocumentUI styles to match mocks.
BUG=24870921

Change-Id: Ic91c9fbbe8c577c2276a4afc79753ba702c53733
2015-10-29 15:43:23 -07:00
Steve McKay
1eafb666c2 Address followup comments from 793838.
Change-Id: Ie77112ea38796f970a8f688c1c94aeb05f46ab78
2015-10-26 13:27:59 -07:00
Steve McKay
3b2ad11fca Enable explicit package for quick view intent.
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
2015-10-16 16:33:38 -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
Ben Kwa
68da5bf488 Merge "Disable productivity mode by default." 2015-09-30 17:03:30 +00: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
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
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
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
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
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
0f7078f004 Refactor DocsUI to break out a new ManageRootActivity.
- 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
2015-09-11 13:58:41 -07:00
Ben Kwa
545407f6c0 Merge "Factor and consolidate style and color names." 2015-09-04 22:01:45 +00:00
Ben Kwa
92b547b813 Factor and consolidate style and color names.
Change-Id: I02d344a4e5528d58e57255a31fbf127402e8ea31
2015-09-04 11:06:49 -07:00
Ben Kwa
304895a8bf Implement undo deletion.
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
2015-09-02 14:07:32 -07:00
Ben Kwa
a747d2e223 Switch DocumentsUI over to use AppCompat themes.
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
2015-08-31 11:43:46 -07:00
Steve McKay
38b4c6f436 Use resource aliases in-lieu of ViewStubs.
This eliminates the double resource inflation necsesitated by the use of ViewStubs.

Change-Id: I9749356bed24f48b8304897dc6d8dc47cc11736c
2015-08-24 12:11:28 -07:00
Steve McKay
12055474a7 Show a drawer when in portrait mode.
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
2015-08-24 09:05:51 -07:00
Tomasz Mikolajewski
5527f6457e Update colors of the create dir dialog in DocumentsUI.
Change-Id: I3c7d452999eb0d18c87a2e767cfc69b0cb1c4928
2015-08-04 16:41:11 +09:00
Tomasz Mikolajewski
44adb33c7b Align root icons with the action bar icon.
Change-Id: I37ac445a562aaba55496adcf7cbf1768236bf7c0
2015-08-03 19:02:04 +09:00
Kyle Horimoto
6b0265eeea Add BandSelectManager.
BUG:20669231

Change-Id: Iea8c3866a9de020a7bebd93a967aa42d45f8e2bd
2015-07-30 10:59:53 -07:00
Tomasz Mikolajewski
f5eb9b3047 Update colors for the standalone activity of DocumentsUI.
BUG=None

Change-Id: Iaf1f9bed243654d1378f0b23c72f128dcbb291f6
2015-07-28 15:02:18 +09:00
Steve McKay
825324369a Improved files icon and activity label.
Change-Id: I7df661b88ce859f94d5f0bbd6687950140cbf39d
2015-07-27 12:03:26 -07:00
Steve McKay
d13f3c9742 Grid item fixups.
Use margin instead of padding (so clicks on empty space don't do unexpected things).
Make background of items white.

Change-Id: I98996c90276911535b7addad1aad4a3c9ca47156
2015-07-23 18:39:54 -07:00
Steve McKay
1dfc482cc0 Allow Files app to be enabled via overlay.
Actual changes to Andromeda overlay are in: http://ag/733602/

Change-Id: Iad5a4cb2d087d574613ba6e9c9c9c69bd8611e8c
2015-07-23 16:41:31 -07:00
Steve McKay
73610b37de Include padding in calculation of column count.
Also rename background color and don't sepcify background in grid items.

Change-Id: I4b565604156864384626e75f0bfd41c98623f90a
2015-07-23 14:47:58 -07:00
Oren Blasberg
78b8afd525 Merge "Load Downloads view in full screen." 2015-07-15 01:17:02 +00:00
Oren Blasberg
9e9c246f56 Load Downloads view in full screen.
BUG=17467808

Change-Id: I70f2ed074d3f08cc7d70f0228b763de25142014a
2015-07-08 13:17:18 -07:00
Jeff Sharkey
bbdb0e5498 am f536a97e: am 67ba3616: am b61e53f5: am e6130b6c: am 6d842f63: Merge "Fix DocumentsUI animation regression." into mnc-dev
* commit 'f536a97e7cbb41f927b8c65f3a56b2932a5c0157':
  Fix DocumentsUI animation regression.
2015-07-07 00:30:53 +00:00
Jeff Sharkey
1f6c9a1214 Fix DocumentsUI animation regression.
Various fragments need backgrounds to protect their contents during
animation transitions.

Bug: 22232368
Change-Id: I4ce4c57650f9b64b3c6101d829dd484417585410
2015-07-05 14:44:51 -07:00
Alan Viverette
15d48a16f6 DO NOT MERGE: Remove DayNight theme
Do not go gentle into that good night,
Old age should burn and rave at close of day;
Rage, rage against the dying of the light.

Though wise men at their end know dark is right,
Because their words had forked no lightning they
Do not go gentle into that good night.

Bug: 21854466
Change-Id: I0b7cd116c23f7df88e94f31b3aee7dd22a102804
2015-06-18 15:15:16 -07:00
Jeff Sharkey
7f9cbf94f4 am 2656fa06: am 415cc610: am 8a265146: Merge "Selected count string needs plurals." into mnc-dev
* commit '2656fa065f820873695ba7743ad0a2ff7d913567':
  Selected count string needs plurals.
2015-06-11 18:47:58 +00:00
Jeff Sharkey
f491c72e4a Selected count string needs plurals.
Bug: 21717427
Change-Id: Ie0db8ac30244b022ca5838969fb085230bfc4499
2015-06-11 09:19:37 -07:00
Jeff Sharkey
9c9661f1b7 am 51b055d3: am e1844c83: am 5fc24733: New strings!
* commit '51b055d330279f5d0a38ad1c33540189e71356e8':
  New strings!
2015-06-11 02:34:28 +00:00
Daichi Hirono
0fe674db7e Merge "DocumentUI: Plish the design of footer bottons." 2015-06-11 01:10:30 +00:00
Jeff Sharkey
5fc247338d New strings!
Bug: 21737573, 21666225, 21756698, 21737666, 21471429
Change-Id: If1c5882d48f798d311f6d2b86277d3c13f06824e
2015-06-10 16:49:11 -07:00
Steve McKay
549636b2aa Fix typo in paste warning string.
BUG=21545788
Change-Id: I6e6265104bb8759c092f247223aef6c0426d844a
2015-06-03 11:23:45 -07:00
Ben Kwa
371dee33df Merge "Fix text on move notifications and toasts." 2015-06-02 14:20:36 +00:00
Ben Kwa
05b7b15310 Fix text on move notifications and toasts.
Some of these still said "copying" instead of "moving".

BUG=21366117

Change-Id: Ib50aaa05617f4f8a88069436a954b56f7be15a44
2015-05-28 16:34:24 -07:00
Daichi Hirono
ac990ceb38 DocumentUI: Plish the design of footer bottons.
* Remove the directory name from "pick" button.
 * Allign buttons at right.
 * Fix bug that the pick button turns to be hidden after screen rotation.

BUG=20285152

Change-Id: I909d52f341bf67c5627431a354a9b0ccec152a05
2015-05-27 15:32:30 -07:00
Steve McKay
bdbd0ffdf2 Add copy/paste menus to StandaloneMode.
Execute encoding/decoding of clipboard data in background...
was seeing a lot of red flashes for large file selections.
Move the majority of the Clipboard management code into a
shared DocumentClipper class.

Hide the copy-to and move-to menus in same.

BUG=20915675
Change-Id: Iff59e846afe6f1e90e6be816f5860d8b7efe3ae1
2015-05-27 14:55:14 -07:00
Ben Kwa
cc3452136e Fix UI for file moves.
Change the destination picker to have a "MOVE" button when moving files.

BUG=20880263

Change-Id: I69686a2f13daa0f0048113e1a2ad71dd37b3de1c
2015-05-19 15:22:36 -07:00
Daichi Hirono
e9cbfe8e5a DocumentUI: Plish the design of footer bottons.
* Remove the directory name from "pick" button.
* Allign buttons at right.
* Fix bug that the pick button turns to be hidden after screen rotation.

BUG=20285152
Change-Id: I909d52f341bf67c5627431a354a9b0ccec152a05
2015-05-18 11:27:15 +09:00
Ben Kwa
ed6fcb5929 Merge "Add a move feature to DocumentsUI." 2015-05-15 16:10:30 +00:00
Ben Kwa
0b4a3c47c6 Add a move feature to DocumentsUI.
Add a menu item (protected behind a system property) for moving files.
Add an extra to the copy intent for transfer mode (copy/move).
Add code to CopyService to delete files after copy when in move mode.
Add tests.

BUG=20559838

Change-Id: I983f57a528327d1e7a12982b599094aad2c856ed
2015-05-15 07:48:28 -07:00
Steve McKay
6e02dc8cd6 Delete StandaloneActivity from M (DO NOT MERGE)
The activity is already disabled by default.
Fix an issue where copy support error handling was attempting to invoke StandaloneActivity.

Change-Id: If15c312a183cae1b2a84517e7f7b3123c11bd619
2015-05-11 16:19:00 +00:00
Steve McKay
3da8afcf30 Add rudimentary keyboard operation support.
Currently only select-all/copy/paste of files is supported.
Note, I wasn't able to push all code into DirectoryFragment,
as Jeff Sharkey suggested, as it doesn't have direct access
to KeyEvents. Bridged this from StandaloneActivity.

Change-Id: I082c457c9c4372e689d3acbca9ae11cd5c554a63
2015-05-06 15:31:19 -07:00
Vladislav Kaznacheev
42a6bbc5a4 Experimental drag&drop in DocumentsUI
Change-Id: If8911f33c6e1de2252d5bdcd5862799c5c4a202a
2015-05-05 12:36:00 -07:00
Tomasz Mikolajewski
eafb267bd9 Update strings for the copy error dialog to match the latest specs.
Change-Id: I9adeff3e7e9435237b4b3337e4c687eec39b0335
2015-04-23 19:10:14 +02:00