642 Commits

Author SHA1 Message Date
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
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
Makoto Onuki
3b31613088 resolved conflicts for merge of 57db559d to master
Change-Id: I645993fe69116f05e2275771b51a36402ba05472
2015-07-06 13:00:51 -07:00
Jeff Sharkey
67ba36163a am b61e53f5: am e6130b6c: am 6d842f63: Merge "Fix DocumentsUI animation regression." into mnc-dev
* commit 'b61e53f5f1bcbf3c9059a3ff58867990f5dde9a7':
  Fix DocumentsUI animation regression.
2015-07-06 19:01:33 +00:00
Makoto Onuki
0e301ffa0f am 650a193e: am 164d229a: am dfd6301f: Merge "If user ejects a storage from details, take user to... ... the storage list view" into mnc-dev
* commit '650a193e8b1610938954851e6d855338b44e239d':
  If user ejects a storage from details, take user to... ... the storage list view
2015-07-06 19:00:38 +00:00
Jeff Sharkey
e6130b6c50 am 6d842f63: Merge "Fix DocumentsUI animation regression." into mnc-dev
* commit '6d842f63a00e34edb583f9fdd6f233c20dcd00f2':
  Fix DocumentsUI animation regression.
2015-07-06 18:12:41 +00:00
Makoto Onuki
164d229a1c am dfd6301f: Merge "If user ejects a storage from details, take user to... ... the storage list view" into mnc-dev
* commit 'dfd6301fa2570ae5b012dd964847531bdfdb3f4b':
  If user ejects a storage from details, take user to... ... the storage list view
2015-07-06 18:05:04 +00:00
Jeff Sharkey
6d842f63a0 Merge "Fix DocumentsUI animation regression." into mnc-dev 2015-07-06 17:58:10 +00:00
Makoto Onuki
dfd6301fa2 Merge "If user ejects a storage from details, take user to... ... the storage list view" into mnc-dev 2015-07-06 17:13:29 +00:00
Geoff Mendal
88b4a0ac56 Import translations. DO NOT MERGE
Change-Id: Icd52bfb7b30de7dbc2c7c7e7f073a4fddb5fa5e3
Auto-generated-cl: translation import
2015-07-06 08:43:33 -05:00
Geoff Mendal
be975a429c Import translations. DO NOT MERGE
Change-Id: I89ab7db17ac523c3a1d71c8c74960b0d1307f61a
Auto-generated-cl: translation import
2015-07-06 07:20:00 -05:00
Jeff Sharkey
1f6c9a1214 Fix DocumentsUI animation regression.
Various fragments need backgrounds to protect their contents during
animation transitions.

Bug: 22232368
Change-Id: I4ce4c57650f9b64b3c6101d829dd484417585410
2015-07-05 14:44:51 -07:00
Makoto Onuki
14a6df7d76 If user ejects a storage from details, take user to...
... the storage list view

1. Change to ExternalStorageProvider
When available volumes have changed, it now notifies on
"content://com.android.externalstorage.documents" rather than on
"content://com.android.externalstorage.documents/root/", because it'll also
affect "content://com.android.externalstorage.documents/document/*/children".

2. Change to DocumentUI
- DirectoryLoader now won't crash when a provider returns null.
- DirectoryFragment now closes itself (i.e. emulate a back press) when a load
failed.
- It now correctly reloads contents when a volume is ejected thanks to 1.

Bug 21472170

Change-Id: Icf4bbc2ebb9067313dbbb67083cd4115b0a75c58
2015-07-01 15:11:46 -07:00
Geoff Mendal
c9b6c1767f Import translations. DO NOT MERGE
Change-Id: Id27150d5e6b378f1fe9e79eb0ea8b88392b2cd09
Auto-generated-cl: translation import
2015-07-01 08:38:57 -05:00
Geoff Mendal
867990c7e8 Import translations. DO NOT MERGE
Change-Id: I3b9f06bfe39442655409eab50324e288ab9cb3b9
Auto-generated-cl: translation import
2015-07-01 07:17:50 -05:00
Geoff Mendal
d38d3e2b1f Import translations. DO NOT MERGE
Change-Id: Ia1829162e64c53a9c9df9211f41bf29d4e67fd20
Auto-generated-cl: translation import
2015-06-29 08:40:48 -05:00
Geoff Mendal
2f3ce3c059 Import translations. DO NOT MERGE
Change-Id: I00a868170fb275da10a7a5833a1dc9f8af3e75c2
Auto-generated-cl: translation import
2015-06-29 07:17:27 -05:00
Makoto Onuki
e9b4972d24 am a4e38b9d: am 423c824b: am d1e62d9d: Merge "Remove default activity title to prevent talkback from..." into mnc-dev
* commit 'a4e38b9d86c59e033f0d17ee7ac96734133881ac':
  Remove default activity title to prevent talkback from...
2015-06-24 00:40:30 +00:00