1454 Commits

Author SHA1 Message Date
Steve McKay
3fff306827 Merge "Disable share when dirs selected." into nyc-dev 2016-05-04 16:46:30 +00:00
Steve McKay
9efd34e00c Disable share when dirs selected.
Pass a SelectionDetails object instead of a pile of booleans into updateActionMenu.
Normalized "is feature X enabled" naming.
Normalized menu fiddling in FilesTuner.

Bug: 28467604
Change-Id: Ic88fab78adf02f794ef0c0550443a3c075e7bab6
2016-05-03 15:57:27 -07:00
Vladislav Kaznacheev
067d6fadd9 Collect mime type data correctly for all URIs added to ClipData
Bug: 28452937
Change-Id: I883ae2d22e09000137fa484ef66d5070855cd0ed
2016-05-03 15:53:45 -07:00
Baligh Uddin
b5b4a6e55e Import translations. DO NOT MERGE
Change-Id: I61a90d45c55e61704154cb3d502ae0e952b44299
Auto-generated-cl: translation import
2016-05-02 20:03:27 -07:00
Ben Lin
2360aa33db Merge "Safe check so we don't move cursor beyond possible pos scope." into nyc-dev 2016-04-27 20:33:52 +00:00
Bill Yi
6c82c5ab41 Import translations. DO NOT MERGE
Change-Id: Ice98eb3ed66513d4e324e5f1939006048caec376
Auto-generated-cl: translation import
2016-04-27 05:43:40 -07:00
TreeHugger Robot
e597323939 Merge "Terminate DocumentsUI opened for the specific root." into nyc-dev 2016-04-27 01:18:44 +00:00
Tomasz Mikolajewski
b56bc29657 Merge "Exclude virtual files from ACTION_SEND." into nyc-dev 2016-04-27 01:11:04 +00:00
Tomasz Mikolajewski
52036c743c Merge "Fix index computation for quick viewing." into nyc-dev 2016-04-27 00:30:46 +00:00
Jeff Sharkey
ee6d8be53e Merge "Revert "Precompute cursor indexes in DocumentsUI and improve perf by 2.7%."" into nyc-dev 2016-04-27 00:04:02 +00:00
TreeHugger Robot
83ca62bdbe Merge "Remove -night qualified resources" into nyc-dev 2016-04-26 18:33:05 +00:00
Daichi Hirono
99900a0e58 Terminate DocumentsUI opened for the specific root.
If USB is opened in DocumentsUI from storage settings and format it from
context menu, a user expects it goes back to storage settings after
formatting the storage.  However, previous we show Downloads as a result
of redirect from the previous USB storage.

The CL changes the logic for callback so that it finishes the activity
if DocumentsUI is opened for the specific root and the root was removed
while a user stays at the root.

Fixes: 28246076
Change-Id: I5548152fc27fd13bd9b75b3083bcfbdd9f93509e
2016-04-26 16:52:44 +09:00
Tomasz Mikolajewski
f61b0b8440 Revert "Precompute cursor indexes in DocumentsUI and improve perf by 2.7%."
This reverts commit 2e4e14789ecf923b16ea4e79b5605952ddc56e5b.

Bug: 28371571
Change-Id: I7aad5eb483c17cccb3485eb22effb677e1ba2160
2016-04-26 11:13:50 +09:00
Alan Viverette
c7d34bb3dc Remove -night qualified resources
Bug: 28358465
Change-Id: I3e9c3ec21bdc39426aa5f81373ca44e61eb6974a
2016-04-25 12:57:54 -04:00
Bill Yi
dcd656051a Import translations. DO NOT MERGE
Change-Id: I0812aa0343d38d49e868e1e8fd895cb9d924b366
Auto-generated-cl: translation import
2016-04-25 04:49:48 -07:00
Tomasz Mikolajewski
f0a56721ae Exclude virtual files from ACTION_SEND.
Bug: 28312221
Change-Id: Ic137ac5e6140cd9e56dc772ada31bb53e451e5f8
2016-04-25 10:21:30 +09:00
Tomasz Mikolajewski
6be540666a Fix index computation for quick viewing.
Bug: 28305994
Change-Id: I8c7abc83bd5ca6f01533a4a7ed0bb995c00833af
2016-04-25 10:00:56 +09:00
Ben Lin
71c7565093 Safe check so we don't move cursor beyond possible pos scope.
Bug: 28278372
Change-Id: I7c66b5229ae3a6a1b99bdf0f02bf1f0b8a1c79b2
2016-04-22 16:13:08 -07:00
Garfield Tan
a5dd3f3240 Merge "Disable view recycling to avoid passing wrong type of view to Item.bindView()." into nyc-dev 2016-04-22 22:47:38 +00:00
Garfield, Tan
360a1964a7 DO NOT MERGE: Disable drag n' drop in DocumentsActivity.
Bug: 28318396
Change-Id: If27bc093b873af5395f69d9139d3fd96e50c0a7b
2016-04-21 16:34:37 -07:00
Garfield, Tan
9eb8818059 Disable view recycling to avoid passing wrong type of view to
Item.bindView().

Bug: 28298672

Change-Id: I1f7442ea3c6287da40b3e5fde25b16c2f2a7b685
2016-04-21 14:09:28 -07:00
Tomasz Mikolajewski
69e3618f07 Merge "Do not make files in zip disabled in ACTION_VIEW." into nyc-dev 2016-04-21 03:17:03 +00:00
Steve McKay
d8c2459b50 Merge "Only show OPEN button as needed." into nyc-dev 2016-04-20 14:25:07 +00:00
Tomasz Mikolajewski
1037af38a4 Do not make files in zip disabled in ACTION_VIEW.
Intent.ACTION_VIEW is only used for browsing ZIP files from Downloads.
FragmentTuner should ignore the MIME type from the MIME type filter.

This CL removes the MIME type filtering logic from FilesTuner, as
I believe FilesActivity is never used for picking items, so there should
be no need to mark any files as disabled.

Bug: 28267117
Change-Id: Iba92f82aca60154674a4bea3265b0f1a3ae296dc
2016-04-20 16:50:25 +09:00
Tomasz Mikolajewski
0fb51357af Merge changes I5e500724,I40cfb12c into nyc-dev
* changes:
  Restrict selection to 1000 items in DocumentsUI.
  Cancel band selection on directory change.
2016-04-20 03:57:28 +00:00
Steve McKay
00c9815d94 Merge "Handle null uris in content changed events." into nyc-dev 2016-04-19 17:10:25 +00:00
Baligh Uddin
4a19326d91 Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-04-19 15:36:50 +00:00
Tomasz Mikolajewski
76572d6f19 Restrict selection to 1000 items in DocumentsUI.
Bug: 27208679
Change-Id: I5e500724a3fb9af5b8f59e0c959523da5066b1fd
2016-04-19 08:51:46 +00:00
Tomasz Mikolajewski
4759c9f03f Cancel band selection on directory change.
This is a workaround for N. Ideally we should keep the band selection,
as directory may change very often, eg. during loading, or downloading
a file (every second).

Bug: 27224277
Change-Id: I40cfb12c4f7928c4e0d6e675e91ba30ab3a6ab52
2016-04-19 17:51:05 +09:00
Baligh Uddin
ec58ba6c89 Import translations. DO NOT MERGE
Change-Id: I1cba5a5c47981751f6134338855f3bd2cbdd9eb1
Auto-generated-cl: translation import
2016-04-18 22:09:26 -07:00
Steve McKay
757fa1b684 Handle null uris in content changed events.
Bug: 28244958
Change-Id: Id3a7adb0ab4a751cfcf6ed3fee4cc6337ce512bb
2016-04-18 17:36:17 -07:00
Felipe Leme
8478bf468e Added extra validation for invalid paths.
In normal circumstances, StorageVolume can only be obtained through
StorageManager and hence it will contain a valid path internally. But
the path could be invalid in at least 2 occations:

- App maliciously changed it using reflection.
- Mounted volume was ejected.

This change improves OpenExternalDirectoryActivity so it returns a
RESULT_CANCELED upon receiveving an invalid path.

BUG: 27962875

Change-Id: Ide43968babaa37961c7b704bd289f44eac952e94
2016-04-18 14:55:15 -07:00
Steve McKay
64bf86503b Only show OPEN button as needed.
Bug: 28182686
Change-Id: I61152015ae5e7b92eead7f42a546ca6055dd426a
2016-04-18 12:22:28 -07:00
TreeHugger Robot
793f859123 Merge "Fallback to Recents when Downloads is not available." into nyc-dev 2016-04-15 23:30:41 +00:00
TreeHugger Robot
cd681aab33 Merge "Handle delete failure notifications correctly." into nyc-dev 2016-04-15 23:12:01 +00:00
Baligh Uddin
fc1291f4be Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-04-15 22:23:27 +00:00
Steve McKay
8f6387021b Handle delete failure notifications correctly.
Case was omitted in dialog, resulting in UnsupportedOperationException.
Remove a redundant flag check.

Bug: 28204292
Change-Id: I313d61c72596d4a127f61d557af7300f50d26bf0
2016-04-15 11:02:36 -07:00
Tomasz Mikolajewski
30616fcd21 Fallback to Recents when Downloads is not available.
Bug: 28182647
Change-Id: I0ece028f7980c7e55ca64d5aa34e98bdb4d08176
2016-04-15 14:06:09 +09:00
Baligh Uddin
155b6e6c03 Import translations. DO NOT MERGE
Change-Id: Ia0afabcab2e24a438c56b8d9306f3bf2855fe124
Auto-generated-cl: translation import
2016-04-14 19:03:29 -07:00
Ben Lin
3a1ae58286 Merge "Disable auto-drawer opening if intent is creating doc on empty dir." into nyc-dev 2016-04-15 00:03:00 +00:00
Steve McKay
f90db0890d Merge "Deal gracefully with empty srcs." into nyc-dev 2016-04-14 19:00:49 +00:00
Steve McKay
cb6903deac Merge "Guard against null clipdata objects." into nyc-dev 2016-04-14 18:44:24 +00:00
Steve McKay
55625a675f Deal gracefully with empty srcs.
Bug: 28184194, 28173827
Change-Id: I6794b147a7e3d3aba73600a87d565bfffe4a4b93
2016-04-14 10:34:08 -07:00
Daichi Hirono
b12733481b Filter out ACTION_UP events in onKey() listener.
Previously we invokes performeSave both for ACTION_DOWN and ACTION_UP,
thus it creates two documents.

Change-Id: I7fc2a62c34fc239c2bf3ca6c71122e360d589727
Fixes: 28179791
2016-04-14 16:54:47 +09:00
Steve McKay
282c458cda Merge "Minor cleanups to delete support." into nyc-dev 2016-04-14 01:23:12 +00:00
Ben Lin
845fe50423 Disable auto-drawer opening if intent is creating doc on empty dir.
Bug: 28170000
Change-Id: Ie7e3cb51dee9bc43d04ba15924b1a23359b784be
2016-04-13 16:33:20 -07:00
Steve McKay
256724ea20 Minor cleanups to delete support.
When deleting by key, make a defensive copy of selection...probably fixing a latent bug.

Bug: 28173827
Change-Id: Ib1ad2214c1f95fa703be227da33b25a5d4021b28
2016-04-13 16:19:03 -07:00
Ben Lin
527184d42b Merge "Open drawer only on first update." into nyc-dev 2016-04-13 21:48:56 +00:00
Steve McKay
3c987600aa Guard against null clipdata objects.
Bug: 28074897
Change-Id: I7f0e520d6f1ce40e6db2fbead21ee4bb37aa3a61
2016-04-13 14:19:50 -07:00
Ben Lin
ab5576d642 Open drawer only on first update.
Bug: 27406768
Change-Id: Ib95ecf68be3ba68bf08ccf7311c641e2e934e9c6
2016-04-13 13:19:55 -07:00