270 Commits

Author SHA1 Message Date
Steve McKay
f3bd63ce97 Merge "Add copy/paste menus to StandaloneMode." 2015-05-27 21:59:18 +00: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
Geoff Mendal
76ebd220fa Import translations. DO NOT MERGE
Change-Id: I51e9176740832e7d46efd122b296e2aaa5337ddc
Auto-generated-cl: translation import
2015-05-27 07:25:06 -05:00
Geoff Mendal
6e91a5d569 Import translations. DO NOT MERGE
Change-Id: Id533c68ca918a7bdf39d17265eae110533317f0f
Auto-generated-cl: translation import
2015-05-25 08:13:11 -05:00
Geoff Mendal
b2f4cc4a32 Import translations. DO NOT MERGE
Change-Id: Ib09a5fcee231389504566419f9cc1d1ab1fbce0b
Auto-generated-cl: translation import
2015-05-21 05:09:18 -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
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
Geoff Mendal
3432c92c2e Import translations. DO NOT MERGE
Change-Id: If35fe8294f23f310f29af829d0eb48a5b8ca375e
Auto-generated-cl: translation import
2015-05-13 05:16:19 -07:00
Steve McKay
e37d2ba7ae Merge "Minor updates improving menu behavior." 2015-05-12 01:50:42 +00:00
Steve McKay
b46383bc9d Minor updates improving menu behavior.
1) Ensure advanced options are always visible.
2) Position search before create folder.
3) Force create-directory into the overflow menu.

And the rider on the bill...

4) Disable Drag/Drop with a static boolean flag.

Change-Id: I173cedf0eb7e11d824377b77ce701eb88de7c1e1
2015-05-11 11:48:51 -07:00
Geoff Mendal
545f6501cf Import translations. DO NOT MERGE
Change-Id: Icb2312f9d041e55146a3c52b87b225511fab9b07
Auto-generated-cl: translation import
2015-05-11 05:16:42 -07: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
Geoff Mendal
b3530295b6 Import translations. DO NOT MERGE
Change-Id: I43378ea885cdb018cd8b8cda5b8be304817e8ee8
Auto-generated-cl: translation import
2015-04-29 05:18:45 -07:00
Geoff Mendal
e67b93962d Import translations. DO NOT MERGE
Change-Id: I4bcfc305120a6a1342978d6763628b08c7086a8a
Auto-generated-cl: translation import
2015-04-27 05:34:04 -07:00
Geoff Mendal
c9f5cb8caf Import translations. DO NOT MERGE
Change-Id: I79db3fdb8e2c5e86259a6c5cefe5e0790a07bc92
Auto-generated-cl: translation import
2015-04-24 23:44:04 -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
Daichi Hirono
517577ea96 DocumentsUI: Stop to override fixed size of dialog in CreateDirectoryDialog.
Previously CreateDirectoryDialog overrides fixed size defined in the application
theme. As a result, the dialog is shown as vertically long.

The CL specifies explicitly specifies the default theme for dialog when creating
the dialog to stop override the application theme.

BUG=20239384
Change-Id: I7227bd91705c32f5196b666bbe94ff32b5cb4af8
2015-04-23 15:02:15 +09:00
Alan Viverette
40a38f3062 Implement DayNight theme for DocumentsUI
Also fixes tint colors for icons to use themed colorControlNormal.

Bug: 20421157
Change-Id: I110a1d95f763332e7ca76cf8ab4125bd4d9a075e
2015-04-22 16:51:08 -07:00
Geoff Mendal
e58224f266 Import translations. DO NOT MERGE
Change-Id: I0893584e89cfc86caea9f5f5f43f8d7dd94873d8
Auto-generated-cl: translation import
2015-04-22 05:20:51 -07:00
Geoff Mendal
3ac2032586 Import translations. DO NOT MERGE
Change-Id: If0652f6630dbfb0110c8b13a479cb59c1af22bcc
Auto-generated-cl: translation import
2015-04-20 05:21:16 -07:00
Geoff Mendal
67a8ad3b65 Import translations. DO NOT MERGE
Change-Id: If7a0cfd12e5ed935ad521bd48eb82dd6cad3084f
Auto-generated-cl: translation import
2015-04-17 20:22:14 -07:00
Daichi Hirono
fbad74b29c Merge "Stop to take multiline file name in the create directory dialog." 2015-04-17 00:59:51 +00:00
Daichi Hirono
ba383eb576 Stop to take multiline file name in the create directory dialog.
BUG=20275734

Change-Id: I1b0847598eb06091193bb63e6ab3a57033798c10
2015-04-16 16:45:33 +09:00
Geoff Mendal
b47a7fe7c6 Import translations. DO NOT MERGE
Change-Id: Ia8ffbde888155d62a59ca824069187db7b9895b8
Auto-generated-cl: translation import
2015-04-15 05:16:32 -07:00
Tomasz Mikolajewski
3b5adaaca1 Merge "Add an initial version of the copy failure dialog to DocumentsUI." 2015-04-15 04:02:14 +00:00
Daichi Hirono
de021abe40 DocumentsUI: Polish buttons of copy destination dialog.
* Add cancel button to directory picker dialog.
* Turns "select" label to "copy to" label for copy destination picker.

BUG=20170953

Change-Id: I66214804aed75a6fccc716d1a01163c634e73d7f
2015-04-15 12:57:53 +09:00
Tomasz Mikolajewski
61686593fd Add an initial version of the copy failure dialog to DocumentsUI.
Change-Id: Ibdfde661aa5b636570c017d3d00565c193d595a3
2015-04-15 12:39:27 +09:00
Geoff Mendal
e7477d6672 Import translations. DO NOT MERGE
Change-Id: I37c3e2c0945bebbf7dd814bad8aa9de1e2c6bef7
Auto-generated-cl: translation import
2015-04-13 05:21:38 -07:00
Jeff Sharkey
1407d4c777 DocumentsUI roots can have settings.
Roots use a flag to indicate they have settings, and DocumentsUI
offers to launch towards someone who handles a new Settings intent.

Slight rename of browse intent for clarity.

Bug: 19993667
Change-Id: I86302ec1cfac5e435d8bc5701bdb85fb9b0dcbae
2015-04-12 22:02:44 -07:00
Geoff Mendal
fff84a87e1 Import translations. DO NOT MERGE
Change-Id: I4be4f944cd8c87529e04aa4c8e19198020c1b262
Auto-generated-cl: translation import
2015-04-10 23:01:52 -07:00
Ben Kwa
23f5ca6dc8 Merge "Enable directory copying." 2015-04-10 17:33:44 +00:00
Ben Kwa
726cf70fd4 Enable directory copying.
- Enable directory picking for copying.
- Implement recursive copying inside the CopyService.
  - Pretty up the notification (use an indeterminate notification while
    calculating copy size)
  - Do two recursive walks: one to determine the size of the copy job,
    and then another to actually copy the files.
- Switch to using ContentProviderClient instances, for better error
  detection and handling
- Disable copying from the Recents view.

Change-Id: Ieb38cca80edf84a487547b68f0d6b328fc4d7701
2015-04-10 10:28:22 -07:00
Tomasz Mikolajewski
3a1b164f65 Merge "Use default theme for StandaloneActivity (DocumentsUI)." 2015-04-08 13:33:13 +00:00
Geoff Mendal
3ebbdd03ea Import translations. DO NOT MERGE
Change-Id: I0f9b0b3036a149b304b874fbaa2d95cf56e4e816
Auto-generated-cl: translation import
2015-04-08 05:35:59 -07:00
Tomasz Mikolajewski
86213c9486 Use default theme for StandaloneActivity (DocumentsUI).
Change-Id: I41841702e0b68123cb73ff1203ca6e6fe5eae320
2015-04-08 20:35:33 +09:00
Geoff Mendal
91a2eaf5ee Import translations. DO NOT MERGE
Change-Id: I34445592f741f1566ae5493a8f591391ca65d435
Auto-generated-cl: translation import
2015-04-06 05:17:12 -07:00
Geoff Mendal
13875be0fe Import translations. DO NOT MERGE
Change-Id: I13a822578c3b71e3176704891486783770337b97
Auto-generated-cl: translation import
2015-04-03 22:35:22 -07:00
Ben Kwa
c8adb235b9 Merge "Enable directory selection. Add an IntentService to copy files." 2015-04-03 21:06:30 +00:00
Ben Kwa
d99109fca8 Enable directory selection. Add an IntentService to copy files.
Change-Id: I0bec0224aa1b52766664c23f77d60affec702111
2015-04-03 13:49:24 -07:00
Geoff Mendal
0b1f41230a Import translations. DO NOT MERGE
Change-Id: I02c4b9d0fcb21c0224590503fa8720805db3d2fa
Auto-generated-cl: translation import
2015-04-01 02:49:53 -07:00
Ben Kwa
3bcc9488a1 Add a "Select All" menu item and code.
Change-Id: I31ed8bff83d8a621a31ea5c2a0d1bb218f53d6e2
2015-03-31 09:12:37 -07:00
Steve McKay
e934ce6f84 Implement a standalone file manager activity.
Change-Id: Iaf86ef416b979cea4ab3890d3a26f09741392c3d
2015-03-25 14:38:56 -07:00
Geoff Mendal
c98146b556 Import translations. DO NOT MERGE
Change-Id: Iac1b987545c21b2e4b29787b13fbaf3414a6a2fb
Auto-generated-cl: translation import
2015-03-20 23:20:04 -07:00
Geoff Mendal
0ef51ec3dd Import translations. DO NOT MERGE
Change-Id: Ic3f3b8418d69d37a26c0be77047faf3ea9294b0f
Auto-generated-cl: translation import
2015-03-16 06:03:55 -07:00
Geoff Mendal
e4bf2eea03 Import translations. DO NOT MERGE
Change-Id: If17993f8a25da1cb9a868150bb787d8c1b9810bd
Auto-generated-cl: translation import
2015-02-25 06:25:08 -08:00
Geoff Mendal
f66949ebd4 Import translations. DO NOT MERGE
Change-Id: Ida34896ac8597930db790a14bc84cd19452f6902
Auto-generated-cl: translation import
2015-01-21 06:45:08 -08:00
Geoff Mendal
e66e10b563 Import translations. DO NOT MERGE
Change-Id: Ibe706a89d57655a9fb5890533887ca7a793190aa
Auto-generated-cl: translation import
2015-01-05 06:19:02 -08:00
Baligh Uddin
a88ec29686 Import translations. DO NOT MERGE
Change-Id: Ib8a2992780a3a20748d2d150e1f887674677cf64
Auto-generated-cl: translation import
2014-12-23 00:09:22 -08:00