521 Commits

Author SHA1 Message Date
Geoff Mendal
c3ae228e99 Revert "Import translations. DO NOT MERGE"
This reverts commit 50d10ccbc092d28533e6730c7e5abe10d785d0ce.

Change-Id: I689bf971848ebec0a88282c39e57113aee6d44cb
2015-06-01 14:05:47 +00:00
Geoff Mendal
50d10ccbc0 Import translations. DO NOT MERGE
Change-Id: If4637a964f9f435c9b9189069574d017a711dc26
Auto-generated-cl: translation import
2015-06-01 06:48:42 -07:00
Geoff Mendal
bbb98b4ed0 Revert "Import translations. DO NOT MERGE"
This reverts commit d2c3a7d7cca2bd828266cd362b00d7d2dfd41f5c.

Change-Id: Idd6e026369a191b5e4449c8decbba8d08e20de92
2015-05-30 04:11:03 +00:00
Geoff Mendal
d2c3a7d7cc Import translations. DO NOT MERGE
Change-Id: I83cdf342c0886f0b1d81104aa3f872b215077fbf
Auto-generated-cl: translation import
2015-05-29 20:49:11 -07:00
Steve McKay
46d57bd8a6 Merge "Do more work off main thread." 2015-05-28 17:05:22 +00:00
Steve McKay
ab7865cd1e Do more work off main thread.
Create List<DocumentInfo> in asynctask to avoid UI jank.

Change-Id: I0a1274b4903c48332c2593714a2e7972b7b2686c
2015-05-27 16:19:14 -07:00
Ben Kwa
43655392fa am 02dcb640: am c016b3ba: am 7a3b2012: Merge "Ensure that the copy notification is always cancelable." into mnc-dev
* commit '02dcb640a1002abd6da4cd7541f45559f907121c':
  Ensure that the copy notification is always cancelable.
2015-05-27 22:06:39 +00:00
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
Ben Kwa
c016b3ba7d am 7a3b2012: Merge "Ensure that the copy notification is always cancelable." into mnc-dev
* commit '7a3b2012ea4d079a50edb8aa101a353830219d29':
  Ensure that the copy notification is always cancelable.
2015-05-27 21:34:10 +00:00
Ben Kwa
7c0ade56f3 Ensure that the copy notification is always cancelable.
If the CopyService dies or is stopped for whatever reason, the cached
"current" job ID will go to null.  In that case, the cancel intent will
be ignored, and the copy notification can never be dismissed.  Adding a
null check to the handleCancel method of CopyService fixes this.

BUG=21365043
Change-Id: I0615328f6033a313fec79f8b63291c7f7373ea0f
2015-05-27 09:19:28 -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
32156a7586 Import translations. DO NOT MERGE
Change-Id: Id4da8170bceabc117824f81c25a6019f5584ce0b
Auto-generated-cl: translation import
2015-05-25 09:53:44 -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
Steve McKay
d91adeef69 Merge "Improve keyboard control of "create folder" action." 2015-05-21 23:35:09 +00:00
Steve McKay
08226358a1 am 4f95bade: Merge "[mnc-dev] Hide list/grid menu items for copy dest action...in mnc-dev!" into mnc-dev
* commit '4f95badec267c53f76475869b17f6bbccc66d406':
  [mnc-dev] Hide list/grid menu items for copy dest action...in mnc-dev!
2015-05-21 20:38:57 +00:00
Steve McKay
4f95badec2 Merge "[mnc-dev] Hide list/grid menu items for copy dest action...in mnc-dev!" into mnc-dev 2015-05-21 20:27:37 +00:00
Steve McKay
574b4bcd1b [mnc-dev] Hide list/grid menu items for copy dest action...in mnc-dev!
BUG=21259006
Change-Id: Ic31dfa1a1cffa4340769c08db3e3cb3fb46e31d5
(cherry picked from commit e04e02d027b731448d68995a202c8867c4985fa3)
2015-05-21 20:15:31 +00:00
Geoff Mendal
dc038f3246 Import translations. DO NOT MERGE
Change-Id: Ibc636bc980ceaead21d2eaf2dd813de284341ab0
Auto-generated-cl: translation import
2015-05-21 06:10:03 -07: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
Steve McKay
ef7d034ae9 Merge "Hide list/grid menu items for copy dest action." 2015-05-20 21:34:38 +00:00
Jeff Sharkey
709f1677cc Merge "Explicitly close cursor." 2015-05-20 21:31:38 +00:00
Steve McKay
0c1d27cea9 Explicitly close cursor.
BUG=21330700

Change-Id: I6cdfdaa1ac162075157a97a831d7349e34522a4a
2015-05-20 14:29:31 -07:00
Steve McKay
e04e02d027 Hide list/grid menu items for copy dest action.
BUG=21259006
Change-Id: Ic31dfa1a1cffa4340769c08db3e3cb3fb46e31d5
2015-05-20 14:09:49 -07:00
Steve McKay
a521d0d318 Improve keyboard control of "create folder" action.
Bind CTRL+Shift+N shortcut to the create folder command.
Improve dialog support (execute on enter).

BUG=21271637

Change-Id: I9474c63cb2568b98b6d829c9552828b9b68da8de
2015-05-20 20:36:40 +00:00
Daichi Hirono
15a5593309 am b7d072f4: Merge "DocumentUI: Plish the design of footer bottons." into mnc-dev
* commit 'b7d072f42fd4fcb2e6e2d7a88ede2d4cee05127c':
  DocumentUI: Plish the design of footer bottons.
2015-05-19 22:34:38 +00: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
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
273103b192 Fix local-storage menu item visibility issue.
Update DocumentsActivity to hide the local-storage (aka "advanced") menu item when visibility of that item is forced-on via extra flag in the intent.
Update StandalongActivity to explicitly NOT honor local-only and force-advanced intent flags.
Fix import ordering (and get my IDE settings in shape).

Change-Id: I5323c85448d029e77732404d6dc8cfdb51ebcfc8
2015-05-12 14:56:52 -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
Steve McKay
3ac67f6cf9 am b3100f4b: Merge "Delete StandaloneActivity from M (DO NOT MERGE)" into mnc-dev
* commit 'b3100f4b13159deb0b5736aedca1659dfe3c762b':
  Delete StandaloneActivity from M (DO NOT MERGE)
2015-05-11 16:33:59 +00:00
Steve McKay
b3100f4b13 Merge "Delete StandaloneActivity from M (DO NOT MERGE)" into mnc-dev 2015-05-11 16:21:02 +00: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
Geoff Mendal
ebb3a45a67 Import translations. DO NOT MERGE
Change-Id: I0999d1abf6951574e9ba7fc6c8a608aaea4540de
Auto-generated-cl: translation import
2015-05-11 06:14:14 -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
Vladislav Kaznacheev
690ec28a71 Merge "Clean up ClipData manipulation code" 2015-05-06 23:47:17 +00:00
Steve McKay
090e0889d0 Merge "Add rudimentary keyboard operation support." 2015-05-06 22:32:06 +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
Steve McKay
49826b1ba2 Merge "Consult local preferences when deciding to show fileSize or not." 2015-05-06 22:28:26 +00:00
Vladislav Kaznacheev
d78d78d682 Merge "Experimental drag&drop in DocumentsUI" 2015-05-06 20:51:05 +00:00
Steve McKay
d0d9afc578 Consult local preferences when deciding to show fileSize or not.
BUG=20881361

Change-Id: I672b843bfe66249d354dffb302d4d3873819dde0
2015-05-06 13:13:50 -07:00
Vladislav Kaznacheev
d69d3c4a09 Clean up ClipData manipulation code
Bug:20556237
Change-Id: If32e952ebb75b7d1a7e6f15604ce5c3be5372e6b
2015-05-06 12:35:01 -07:00
Ben Kwa
f976509bed am 0fd9d0ba: am efcc5b33: am e74007de: Merge "Clean up error handling in CopyService." into mnc-dev
* commit '0fd9d0bab7c5e8ca71725b0c7a1fa059196610de':
  Clean up error handling in CopyService.
2015-05-05 22:17:30 +00:00
Vladislav Kaznacheev
42a6bbc5a4 Experimental drag&drop in DocumentsUI
Change-Id: If8911f33c6e1de2252d5bdcd5862799c5c4a202a
2015-05-05 12:36:00 -07:00
Ben Kwa
75597d0dc5 Clean up error handling in CopyService.
Change-Id: I87b9f2c2cfddc222fbee64578b0a1349508a244f
2015-05-05 11:58:38 -07:00
Ben Kwa
efb70fd8a0 Merge "Cherry pick beefed-up error handling in the CopyService from master. DO NOT MERGE" into mnc-dev 2015-05-05 18:54:07 +00:00