Tomasz Mikolajewski
6be540666a
Fix index computation for quick viewing.
...
Bug: 28305994
Change-Id: I8c7abc83bd5ca6f01533a4a7ed0bb995c00833af
2016-04-25 10:00:56 +09:00
Garfield, Tan
b86c38f995
Merge "Disable view recycling to avoid passing wrong type of view to Item.bindView()." into nyc-dev
...
am: a5dd3f3
* commit 'a5dd3f32403deb01ad260d50468f4daf8988ab01':
Disable view recycling to avoid passing wrong type of view to Item.bindView().
Change-Id: Id21f8e5546e28179954e39903baaebf5feff356a
2016-04-22 23:33:59 +00: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
050f98da0d
Merge "DO NOT MERGE: Disable drag n\' drop in DocumentsActivity." into nyc-dev
...
am: 6e685dc3c5
* commit '6e685dc3c519526a0f38ec5ee9e81e1f57e0fa36':
DO NOT MERGE: Disable drag n' drop in DocumentsActivity.
Change-Id: I9e4424bfbffc46cd1880241b6961c0f0ca75aab4
2016-04-22 17:47:33 +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
caad05bf83
Merge "Do not make files in zip disabled in ACTION_VIEW." into nyc-dev
...
am: 69e3618f07
* commit '69e3618f07be6f48bfc37c52e6ef5830f717b495':
Do not make files in zip disabled in ACTION_VIEW.
Change-Id: I6c4749738e1bc6116e4e56c494932a62d2c16ac9
2016-04-21 03:26:01 +00: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
21c712bf82
Merge "Only show OPEN button as needed." into nyc-dev
...
am: d8c2459
* commit 'd8c2459b5010526853de8f35008efd1cafe950ac':
Only show OPEN button as needed.
Change-Id: I8ed24327745d497f0fb7308671a4820fa21f0953
2016-04-20 14:30:29 +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
241e9fc00f
Merge changes I5e500724,I40cfb12c into nyc-dev
...
am: 0fb5135
* commit '0fb51357afb64a034a59f68a926f79d18213c72c':
Restrict selection to 1000 items in DocumentsUI.
Cancel band selection on directory change.
Change-Id: Id421aa25d0ad1e4134ecfeabd84aad801fdb4f13
2016-04-20 04:03:24 +00: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
1e92215278
Merge "Handle null uris in content changed events." into nyc-dev
...
am: 00c9815
* commit '00c9815d942265719de92a19e243c1c970929210':
Handle null uris in content changed events.
Change-Id: Ic249a09d6cdbc04acab19e2b64a12f59faeff51f
2016-04-19 17:16:27 +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
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