1421 Commits

Author SHA1 Message Date
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
Steve McKay
5108d34374 Merge "Mark DocumentsUI as a "privileged" app." into nyc-dev 2016-04-13 18:59:33 +00:00
Steve McKay
03dab3e562 Merge "Fix selecting all in DocumentsUI." into nyc-dev 2016-04-13 18:57:55 +00:00
Steve McKay
92bf96dd57 Mark DocumentsUI as a "privileged" app.
This fixes the issues with CTS resulting from the change to intent filtering.
Bug: 28081616

Change-Id: I81f87ff56b5fbb0d526863da44a2fcef29a3aa2c
2016-04-13 10:25:43 -07:00
Tomasz Mikolajewski
89950ead86 Fix selecting all in DocumentsUI.
Bug: 28152042
Change-Id: Ie241874af77aaca4fd6c6cbc18a9a7e8ba31d87d
2016-04-13 16:18:15 +09:00
Tomasz Mikolajewski
5e02d303c0 Do not allow to select non-selectable items via mouse.
Bug: 28101625
Change-Id: I9f6cd4e259f7860bbc6c74c4d24c43e2c3ba1047
2016-04-13 06:36:22 +00:00
Tomasz Mikolajewski
566c595d4d Merge "Do not crash when trying to select unselectable items with keyboard." into nyc-dev 2016-04-13 06:34:04 +00:00
Tomasz Mikolajewski
0e6b84ff63 Do not crash when trying to select unselectable items with keyboard.
Bug: 28103071
Change-Id: I6e9bc918433eee4b1309ccf8ea597ea774e5559e
2016-04-13 04:13:09 +00:00
Tomasz Mikolajewski
ad913ed551 Remove the toolbar icon from DocumentsUI.
Bug: 27565928
Change-Id: I5181466a770e11716f173cf8cc66f62ba71ac710
2016-04-13 01:55:14 +00:00
Steve McKay
1db228a74b Merge "Daeal with null cursors more leniently." into nyc-dev 2016-04-12 23:05:27 +00:00
Steve McKay
dcc68fdd0c Daeal with null cursors more leniently.
Since modelId may not in fact result in a cursor.
Bug: 28074284

Change-Id: I8632c9c7d5e3da32080c07033089173105c03646
2016-04-12 11:41:19 -07:00
Steve McKay
151f4b9b30 Merge "Tint current root icon." into nyc-dev 2016-04-12 16:41:50 +00:00
Tomasz Mikolajewski
fbd4b558d5 Merge "Fix selecting with touch in multi-window." into nyc-dev 2016-04-12 01:06:24 +00:00
Steve McKay
be4e5ebd75 Tint current root icon.
Bug: 27564967
Change-Id: I7ccd5940cf58d214c96ca869ce78b736c5b4d83d
2016-04-11 15:37:25 -07:00
Steve McKay
eb76763b80 Merge "Don't enable new folder in downloads..." into nyc-dev 2016-04-11 20:41:30 +00:00
Tomasz Mikolajewski
3871fd16d0 Fix selecting with touch in multi-window.
Bug: 28068983
Change-Id: Ie3ce0540a22a352c55fa18cb5be2cde28417e556
2016-04-11 17:54:24 +09:00
Tomasz Mikolajewski
c58e5619d3 Merge "Fix opening archives in Downloads." into nyc-dev 2016-04-11 03:00:12 +00:00
Bill Yi
2f4fa529be Import translations. DO NOT MERGE
Change-Id: I0eb19bcbf8069fba98efb31862b1e2e85010d95c
Auto-generated-cl: translation import
2016-04-09 04:07:52 -07:00
Steve McKay
4f89b6c6b8 Use writeStringList for selection parceling.
Bug: 27208679
Change-Id: Id0506e49254e0b3fcddb7d3f92717da0a95f2f6d
2016-04-08 17:36:25 -07:00
Steve McKay
c15528afa6 Don't enable new folder in downloads...
During copy operation.
Also, relay intent extras when opening copy destination picker.

Bug: 28081616
Change-Id: I3109eaf993da93239ba25db066beb5787a924196
2016-04-08 17:34:27 -07:00
Aga Wronska
43df577ac4 Consolidate user actions metrics into one histogram.
Bug: 27301081
Change-Id: Ib2ac46dd268e492c576bc082dc349c4a6826897f
2016-04-08 14:16:40 -07:00
Tomasz Mikolajewski
8fa9970149 Fix opening archives in Downloads.
When opening an archive in Downloads we first want to use
the ACTION_MANAGE_DOCUMENT intent, as it's a file on Downloads.

However, for files within archives we don't want call this intent,
as ACTION_MANAGE_DOCUMENT does not support files in archives.

Finally, we actually need to call ACTION_MANAGE_DOCUMENT for
archive files on Downloads, to give third party apps a chance
to show up in the Intent choose (invoked by the Trampoline).

This CL makes things work as they worked before merging
DownloadsActivity with DocumentsActivity.

Bug: 28033554
Change-Id: I287759aa8fc0457341ce6ece07d5c2ccf36f2c8c
2016-04-08 10:45:04 +09:00
Tomasz Mikolajewski
64f2ffaa7e Merge "Remove unused state in DocumentsUI." into nyc-dev 2016-04-07 04:44:25 +00:00
Tomasz Mikolajewski
e68cc51614 Merge "Do not crash when selecting a lot of files." into nyc-dev 2016-04-07 03:27:13 +00:00
Tomasz Mikolajewski
1451847bea Remove unused state in DocumentsUI.
Selection in State is very large, but no longer used. Removed.

Bug: 27208679
Change-Id: I2750347f6d06f2d006a0a04865d81110307ff7c5
2016-04-07 11:30:48 +09:00
Tomasz Mikolajewski
90e0ff0884 Do not crash when selecting a lot of files.
Bug: 27208679
Change-Id: I3763e190bf8a014274895a349b9739672f3e2224
2016-04-07 11:12:07 +09:00
Aga Wronska
6af13300d4 Set status bar color to material_blue_grey_950 as specified by UX.
Change-Id: I010309c5c5aaf312e645a75720e710ef83111952
Fixing: b/27561646
2016-04-06 14:21:56 -07:00
Aga Wronska
48c846368f Revert 'Make Files drawer appear behind system ui bars' because of action mode bug
Fixing: b/27854892
Bug: 27570567

Change-Id: Iefdf2f2a450d80c551027efb35121554503cca3c
2016-04-06 14:03:16 -07:00
Steve McKay
3855e9ce49 Merge "Massage code to better support Files overlay." into nyc-dev 2016-04-06 18:44:59 +00:00
Steve McKay
53f109b39e Massage code to better support Files overlay.
Also, allow "productivity_mode" config to be enabled via intent extra
    as a developement aide.

Bug: 28006206
Change-Id: I7be8d96a0e924f9ce8023347e051d28d69a0eec9
2016-04-06 10:25:02 -07:00
Ben Kwa
2084796e23 Merge "DocsUI: Update the drag shadow to meet UI spec." into nyc-dev 2016-04-06 15:02:04 +00:00
Ben Kwa
e67b0bdf5a DocsUI: Update the drag shadow to meet UI spec.
BUG=27608249

Change-Id: If10f842be4507c5f04e2e91dadcae842610388f2
2016-04-05 15:49:51 -07:00
Jeff Sharkey
e1412415d1 Merge "Invalidate caches when locale changes." into nyc-dev 2016-04-05 21:21:19 +00:00
Bill Yi
0b3aebbe03 Import translations. DO NOT MERGE
Change-Id: I313e43e4b0f2f90265415bfb36ac3316dcb58e00
Auto-generated-cl: translation import
2016-04-05 00:12:38 -07:00