658 Commits

Author SHA1 Message Date
Steve McKay
dbec47a494 Add support for single-select mode.
This is required for some of the intent invoked modes when the
"ALLOW_MULTI_SELECT" extra is not present.

Bug: 23155138
Change-Id: Ib92512c7f1c8e906ecca98d69ff727fc865fd53e
2015-08-14 14:32:49 -07:00
Geoff Mendal
008b929a46 Import translations. DO NOT MERGE
Change-Id: I6eafa63bf01b3562d539543e701211e8097ccf19
Auto-generated-cl: translation import
2015-08-08 05:45:58 -07:00
Kyle Horimoto
617328b4a5 Merge "Add scrolling functionality to BandSelectManager." 2015-08-06 18:08:42 +00:00
Kyle Horimoto
155e5615ea Add scrolling functionality to BandSelectManager.
Now, if band select reaches the top or bottom of the view, the view scrolls in that direction. Very fast scrolls may cause some items not to be selected properly, but this will be fixed in a future CL.

BUG=20669231

Change-Id: Ie3110156c69ec620713c4929d2583c2ed5ab32df
2015-08-06 11:06:48 -07:00
Geoff Mendal
a0eab26d8c Import translations. DO NOT MERGE
Change-Id: I10981d7c3b340e4a0194be8df144a7456ba3a677
Auto-generated-cl: translation import
2015-08-05 05:22:20 -07:00
Steve McKay
6eaf3863c8 Populate quick view intent w/ file uris.
Change-Id: Ie4f15b11be1939f8b71752505caa9d74ab9f9680
2015-08-04 15:06:40 -07:00
Steve McKay
2909598322 Merge "Use an explicit intent for "Quick View"..." 2015-08-04 16:40:37 +00:00
Steve McKay
c78bcb8c7f Use an explicit intent for "Quick View"...
Define Intent.ACTION_QUICK_VIEW.

Change-Id: Iae85a2a6fe35cfd135ff1af6672d37cc6b33dce4
2015-08-04 09:36:29 -07:00
Tomasz Mikolajewski
5527f6457e Update colors of the create dir dialog in DocumentsUI.
Change-Id: I3c7d452999eb0d18c87a2e767cfc69b0cb1c4928
2015-08-04 16:41:11 +09:00
Tomasz Mikolajewski
9c5e50169c Merge "Align root icons with the action bar icon." 2015-08-04 00:09:19 +00:00
Tomasz Mikolajewski
09c6f0265e Merge "Enable a ripple on the roots list in DocumentsUI." 2015-08-04 00:08:06 +00:00
Tomasz Mikolajewski
44adb33c7b Align root icons with the action bar icon.
Change-Id: I37ac445a562aaba55496adcf7cbf1768236bf7c0
2015-08-03 19:02:04 +09:00
Tomasz Mikolajewski
2893434701 Merge "Remove some duplicated code in DocumentsUI." 2015-08-03 09:43:31 +00:00
Tomasz Mikolajewski
d89a2e44a8 Enable a ripple on the roots list in DocumentsUI.
Change-Id: I380cd66ace4ee1478e5a182545f916ac39e47d8d
2015-08-03 18:42:40 +09:00
Geoff Mendal
fc10a337d6 Import translations. DO NOT MERGE
Change-Id: I9c0cb95293f14a2fb4865c31824c4b7fee8ff8b6
Auto-generated-cl: translation import
2015-07-31 19:05:36 -07:00
Steve McKay
5353a1eb7d Start selection mode with single mouse click...
Double clicking an item opens it.
BandSelectManager tells MultiSelectManager where its selection begins
    so Shift+Click behavior can be complimentary.
BandSelectManager more actively manages selection...so it doesn't
    clear existing selection on mouse down.

Change-Id: Ibe65e793e84463d333a19f363dfb0d42c37480e3
2015-07-31 11:38:44 -07:00
Kyle Horimoto
6b0265eeea Add BandSelectManager.
BUG:20669231

Change-Id: Iea8c3866a9de020a7bebd93a967aa42d45f8e2bd
2015-07-30 10:59:53 -07:00
Tomasz Mikolajewski
eafc24a4a4 Remove some duplicated code in DocumentsUI.
Change-Id: I065baeb73d0b3e01abecb8f7957b93379ac2426f
2015-07-30 11:26:32 +09:00
Steve McKay
5542d91998 Add a TestSuite for running unittests.
Change-Id: If9777dd23d3a4cb2969e2709f98806417e412c5d
2015-07-29 14:34:57 -07:00
Steve McKay
e63dce7fbd Add SHIFT+Click selection support.
Bug: 22799741
Change-Id: Ia1221675db8c2813667bfde561c23304e4d0b31f
2015-07-29 12:07:14 -07:00
Geoff Mendal
f1dcbc9823 Import translations. DO NOT MERGE
Change-Id: If6b0135a10eaea48ab3e0343304b464d9569cd59
Auto-generated-cl: translation import
2015-07-29 05:13:45 -07:00
Steve McKay
7f8eec09f5 Merge "Make horizontal and vertical margins equal in DocumentsUI." 2015-07-28 17:18:17 +00:00
Tomasz Mikolajewski
7f9f4c4493 Make horizontal and vertical margins equal in DocumentsUI.
BUG=None

Change-Id: I78fd3191259fa1e9a420b105f2a2be8bd5f853bb
2015-07-28 15:42:01 +09:00
Tomasz Mikolajewski
f5eb9b3047 Update colors for the standalone activity of DocumentsUI.
BUG=None

Change-Id: Iaf1f9bed243654d1378f0b23c72f128dcbb291f6
2015-07-28 15:02:18 +09:00
Steve McKay
825324369a Improved files icon and activity label.
Change-Id: I7df661b88ce859f94d5f0bbd6687950140cbf39d
2015-07-27 12:03:26 -07:00
Steve McKay
b04b1648c5 Clear selection when empty space is tapped.
Change-Id: I37f3ce8ec8d6b4c69a990ad129ff37229a8d2ac2
2015-07-27 11:25:25 -07:00
Steve McKay
0ba3a14b5f Update grid layout only on recView layout changes.
Else, trying to measure the layout of recycler view would
sometime return unexpected results.

Change-Id: Ie97c1bce7e7cc59112c386b2cf77055a4aea811e
2015-07-24 11:10:40 -07:00
Steve McKay
d13f3c9742 Grid item fixups.
Use margin instead of padding (so clicks on empty space don't do unexpected things).
Make background of items white.

Change-Id: I98996c90276911535b7addad1aad4a3c9ca47156
2015-07-23 18:39:54 -07:00
Steve McKay
1dfc482cc0 Allow Files app to be enabled via overlay.
Actual changes to Andromeda overlay are in: http://ag/733602/

Change-Id: Iad5a4cb2d087d574613ba6e9c9c9c69bd8611e8c
2015-07-23 16:41:31 -07:00
Steve McKay
73610b37de Include padding in calculation of column count.
Also rename background color and don't sepcify background in grid items.

Change-Id: I4b565604156864384626e75f0bfd41c98623f90a
2015-07-23 14:47:58 -07:00
Steve McKay
3c8afe2011 Merge "Apply hirono@'s logic for disabling delete action" 2015-07-23 01:04:54 +00:00
Steve McKay
709b61de16 Pick column count based on available space.
Set background color of RecyclerView.

BUG: 22640007
BUG: 22672201
Change-Id: Ic9c65a2a25164698bc08b4620bfa0b067d620f1b
2015-07-22 17:29:10 -07:00
Steve McKay
503648ddc3 Apply hirono@'s logic for disabling delete action
...when selection contains non-deletable items.

BUG=22441292
Change-Id: I716e5c1f685c9f3d12b01b193753775094cde481
2015-07-22 12:46:15 -07:00
Steve McKay
3b409d01b9 Push equals impl into SparseBooleanArray.
Also, implement hashcode, because it is naughty to not.

Change-Id: I2042dac6840cf07027871783a7b6763578fa805d
2015-07-22 11:53:14 -07:00
Steve McKay
0ab6b0e824 Merge "Update DirectoryFragment to use RecyclerView." 2015-07-22 18:20:33 +00:00
Geoff Mendal
aa3bd27dd9 Import translations. DO NOT MERGE
Change-Id: I551ef78dd9fa8b0ac1652937f70862e6f5d8e1ba
Auto-generated-cl: translation import
2015-07-22 05:19:47 -07:00
Steve McKay
4b3a13c1d0 Update DirectoryFragment to use RecyclerView.
Add MultiSelectMaanger class to manager selection on a RecyclerView instance.
There are several outstanding issues that still need to be addressed
surrounding Grid mode as the GridLayout manager doesn't support
automatic column count calculation.
Also, we're missing the puddle effect on touch...
And probably other stuff. But it all *mostly* works.
Oh, also. Footers are currently commented out.
Add traditional unit tests for MultiSelectManager.

BUG: 22225617
Change-Id: I3cd26a10683f42053556d463a5d2f0d2a0bbde84
2015-07-21 17:30:32 -07:00
Jeff Sharkey
177c9c8c14 Merge commit '3bc83eb0' into downstream
Change-Id: Id3980b39889f28ab42284119747eb461be0a3ce5
2015-07-15 15:54:20 -07:00
Jeff Sharkey
6663f84470 am b5405b45: am 350b99c0: am 483bd842: Merge "Only send EXTRA_STACK for private intent." into mnc-dev
* commit 'b5405b45784cebf978b6102d324a1018fe66deb6':
  Only send EXTRA_STACK for private intent.
2015-07-15 22:11:18 +00:00
Jeff Sharkey
b5405b4578 am 350b99c0: am 483bd842: Merge "Only send EXTRA_STACK for private intent." into mnc-dev
* commit '350b99c0027902db22004ea037265349155d7c38':
  Only send EXTRA_STACK for private intent.
2015-07-15 21:59:31 +00:00
Jeff Sharkey
350b99c002 am 483bd842: Merge "Only send EXTRA_STACK for private intent." into mnc-dev
* commit '483bd84280ef667e306ec7246d85423ca6b1fde7':
  Only send EXTRA_STACK for private intent.
2015-07-15 21:43:48 +00:00
Jeff Sharkey
04ec6f4f09 Only send EXTRA_STACK for private intent.
Since it's a private Parcelable class, we can't send it to other
third-party apps, since they won't know how to unpack it.

Bug: 22255387
Change-Id: Ie2ea6cf72b733bd122eb3581a5df295cec608425
2015-07-15 09:13:14 -07:00
Geoff Mendal
f0e20f32ea Import translations. DO NOT MERGE
Change-Id: I52e64cacb7fc880be84d51800275d845c2215b83
Auto-generated-cl: translation import
2015-07-15 05:13:54 -07:00
Oren Blasberg
78b8afd525 Merge "Load Downloads view in full screen." 2015-07-15 01:17:02 +00:00
Geoff Mendal
da868b9a00 Import translations. DO NOT MERGE
Change-Id: Ia6c22efa7d0a9bb73d3d60063228927274209e18
Auto-generated-cl: translation import
2015-07-11 13:39:58 -07:00
Geoff Mendal
85db320ec8 Import translations. DO NOT MERGE
Change-Id: I27f86997807a65c6dfd9eba377f9bce991a3815e
Auto-generated-cl: translation import
2015-07-11 05:21:15 -07:00
Oren Blasberg
9e9c246f56 Load Downloads view in full screen.
BUG=17467808

Change-Id: I70f2ed074d3f08cc7d70f0228b763de25142014a
2015-07-08 13:17:18 -07:00
Geoff Mendal
20ad92460b Import translations. DO NOT MERGE
Change-Id: I173b85dbcf36fdc7023137949f7bb416dabc2cf5
Auto-generated-cl: translation import
2015-07-08 06:43:44 -07:00
Geoff Mendal
8179e27121 Import translations. DO NOT MERGE
Change-Id: I20c772a415cd96f3b0c00d10a50cdfe617e94fe9
Auto-generated-cl: translation import
2015-07-08 05:14:50 -07:00
Jeff Sharkey
bbdb0e5498 am f536a97e: am 67ba3616: am b61e53f5: am e6130b6c: am 6d842f63: Merge "Fix DocumentsUI animation regression." into mnc-dev
* commit 'f536a97e7cbb41f927b8c65f3a56b2932a5c0157':
  Fix DocumentsUI animation regression.
2015-07-07 00:30:53 +00:00