538 Commits

Author SHA1 Message Date
Ben Kwa
7a52b6b70b Disable productivity mode by default.
Productivity mode is a flag that was designed to be enabled only in
andromeda builds.  It should not be enabled in the base-level package.

BUG=24474568

Change-Id: I048bae9d3cf8270503cf245ed1e6959dab68571c
2015-09-28 15:54:27 -07:00
Baligh Uddin
f48b491d4e Merge "Import translations. DO NOT MERGE" 2015-09-27 03:05:22 +00:00
Baligh Uddin
b51a47dc6e Import translations. DO NOT MERGE
Change-Id: Ideadb94b604cb761566eb1f0d46bc88a9e411380
Auto-generated-cl: translation import
2015-09-25 22:39:56 -07:00
Steve McKay
9f9d5b432d Add support for opening multiple windows.
Installs an intermediate activity that manages tasks.

Bug: 20562850
Change-Id: If2d0a125b0630c27af07666b0f6a712f58243e9f
2015-09-25 14:46:14 -07:00
Ben Kwa
91bec536ac DocumentsUI: Add an error screen to DirectoryFragment.
- Reorganize the directory fragment.
- Repurpose the "empty" view to hold a message and a button.
- Message is set to the "No items" message if a directory is empty.
- Message is set to the error message if a query error occurs.
- Don't close DocumentsUI when a query error occurs.

Change-Id: I4e1e96f23040606b410ac746252dcb0ab9286f04
2015-09-24 15:06:14 -07:00
Steve McKay
c643386e28 Update RecentsCreateView to use RecyclerView.
Move common DirectoryContainerView handling to BaseActivity.

Change-Id: I2c34b23b7050b68999f16e6d7f651c94ea8e47b6
2015-09-22 15:58:15 -07:00
Ben Kwa
91caed80b1 Restore more missing DirectoryFragment functionality.
- Add a material-style horizontal progress bar to DocumentsUI.  This
  replaces the old loading footer.
- Restore the view-switching code that displayed a dedicated "empty"
  view when displaying an empty directory.
- Fix tests.

Change-Id: Ifecb867f6edecbdeb37b8607d87d9797879a589d
2015-09-22 13:24:51 -07:00
Ben Kwa
3b19e31e18 Replace error/info footers with a message bar.
- Remove footers from DirectoryFragment.
- Add a new MessageBar fragment that can display error/info messages.

BUG=22638983

Change-Id: I2075ae8e4dca8954a09c1fc57ed62bb6d3bff7a9
2015-09-18 13:53:41 -07:00
Ben Kwa
7cc80013f3 Adjust theming for Files mode.
- Bring files mode in line with MD spec platform colors.
- Normalize selection highlight color in grid and table mode.
- Fix status bar and accent colors in portrait mode.

BUG=23797347
BUG=24012021

Change-Id: I3427939b39f3f39f5e04bd4d854166dd6b3881b1
2015-09-15 10:55:22 -07:00
Ben Kwa
0f7078f004 Refactor DocsUI to break out a new ManageRootActivity.
- Split all ACTION_MANAGE-related functionality off from
  DocumentsActivity, into a new activity.
- Create new full-screen layouts for said activity.
- Fix some styling issues in {Documents,Files}Activity.

Change-Id: I0384715ad3c7d70a3a3daf510f1a09e8c5732348
2015-09-11 13:58:41 -07:00
Geoff Mendal
16774c9816 Import translations. DO NOT MERGE
Change-Id: I88e15a674412aeb7de73e20d2af49bd5e95c747b
Auto-generated-cl: translation import
2015-09-07 06:47:51 -07:00
Ben Kwa
545407f6c0 Merge "Factor and consolidate style and color names." 2015-09-04 22:01:45 +00:00
Ben Kwa
92b547b813 Factor and consolidate style and color names.
Change-Id: I02d344a4e5528d58e57255a31fbf127402e8ea31
2015-09-04 11:06:49 -07:00
Ben Kwa
304895a8bf Implement undo deletion.
Add a snackbar that pops up upon deleting files, giving the user a chance to
undo the operation.  If the user takes no action, the files are deleted.

This feature basically hides the files temporarily and pops up the said
snackbar, and if the user doesn' hit "undo", the files will be actually
deleted when the snackbar times out.

BUG=23518578

Change-Id: I181395aff967e62ca9287ed6fea2c7c8b8c09a71
2015-09-02 14:07:32 -07:00
Ben Kwa
a747d2e223 Switch DocumentsUI over to use AppCompat themes.
Switches from Material to AppCompat themes in order to start using
Snackbar.

Also, factor the common bits out of DocumentsNonDialogTheme and
FilesTheme, and make the theme names clearer.

BUG=23518578

Change-Id: I94a00e910469c57315823ae9df33024f2c7360ee
2015-08-31 11:43:46 -07:00
Steve McKay
38b4c6f436 Use resource aliases in-lieu of ViewStubs.
This eliminates the double resource inflation necsesitated by the use of ViewStubs.

Change-Id: I9749356bed24f48b8304897dc6d8dc47cc11736c
2015-08-24 12:11:28 -07:00
Steve McKay
12055474a7 Show a drawer when in portrait mode.
This makes more space available for content.
Rename all the "Standalone" stuff to just "Files".
Move layout inflation into base class.
Move backbutton > drawer interaction into BaseActivity.

Change-Id: Ie778b323c6e80122389f029be148dd9e0c4bfb6e
2015-08-24 09:05:51 -07:00
Ben Kwa
207968345a Make grid items be square.
Introduce a new GridItem class whose onMeasure method enforces a square
aspect ratio, and use it for rendering items when in grid mode.

Change-Id: Ieda82b644d0155354ee8e4c1dacae4af7436b7aa
2015-08-20 13:16:36 -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
Geoff Mendal
a0eab26d8c Import translations. DO NOT MERGE
Change-Id: I10981d7c3b340e4a0194be8df144a7456ba3a677
Auto-generated-cl: translation import
2015-08-05 05:22:20 -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
44adb33c7b Align root icons with the action bar icon.
Change-Id: I37ac445a562aaba55496adcf7cbf1768236bf7c0
2015-08-03 19:02:04 +09: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
Kyle Horimoto
6b0265eeea Add BandSelectManager.
BUG:20669231

Change-Id: Iea8c3866a9de020a7bebd93a967aa42d45f8e2bd
2015-07-30 10:59:53 -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
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
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
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
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
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
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
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
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
Jeff Sharkey
6d842f63a0 Merge "Fix DocumentsUI animation regression." into mnc-dev 2015-07-06 17:58:10 +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