Commit Graph

518 Commits

Author SHA1 Message Date
Geoff Mendal
19aa3d6bce Import translations. DO NOT MERGE
Change-Id: I9a26d5bc10393b366fc8e9945fb9e60a0a12b86e
Auto-generated-cl: translation import
2016-02-22 05:18:38 -08:00
Ben Kwa
fafa161d81 Merge "Implement type-to-focus in the DirectoryFragment." into nyc-dev am: 7b300ff369
am: b78500093f

* commit 'b78500093f5ef7dbb09a52de09b15633695736fb':
  Implement type-to-focus in the DirectoryFragment.
2016-02-19 00:55:23 +00:00
Ben Kwa
b78500093f Merge "Implement type-to-focus in the DirectoryFragment." into nyc-dev
am: 7b300ff369

* commit '7b300ff36932a4815f1f85b9ea73ec9a373dee10':
  Implement type-to-focus in the DirectoryFragment.
2016-02-19 00:47:04 +00:00
Ben Kwa
7b300ff369 Merge "Implement type-to-focus in the DirectoryFragment." into nyc-dev 2016-02-19 00:39:27 +00:00
Steve McKay
7d673480e8 Merge "UX cleanups." into nyc-dev am: 7295bcbe42
am: 854694225c

* commit '854694225c4bbab59b2a78762129165bd311ff9e':
  UX cleanups.
2016-02-18 23:24:49 +00:00
Steve McKay
854694225c Merge "UX cleanups." into nyc-dev
am: 7295bcbe42

* commit '7295bcbe42a15742550fc8abcfb983a6274b86a6':
  UX cleanups.
2016-02-18 23:18:02 +00:00
Steve McKay
e2af078488 UX cleanups.
Visually separate directory background from sidebar.
Lower shadows so the "real" effect isn't so prominent.

Hitchhikders:
Consolidate bool values in config.xml files (were in dimens.xml).
Add missing supportsRecents & supportsSearch methods
    to RootInfo.
Rename RecentLoader to RecentsLoader so it doesn't defy
    searching for "Recents" string.
Move Downloads below the divider.

Change-Id: I06c76e26ec6df6541860a1448865c67ed953ed43
2016-02-18 22:21:03 +00:00
Ben Kwa
a4acc90b0a Implement type-to-focus in the DirectoryFragment.
Add a helper to the FocusManager, to handle alphanumeric keystrokes.
- Build a search index mapping document titles to adapter positions, and
  keep it up-to-date.
- Intercept alphanumeric keystrokes and build up a search string from
  them.
- Use the search string and index to set focus in the directory listing.
- Highlight code is written, but not activated in the UI for now, to
  minimize surface area for potential breakages.  Revisit enabling
  highlights for O.

BUG=24988911

Change-Id: I148ff5583c655338d12bc06d6484a9ed7aa528ad
2016-02-18 12:04:35 -08:00
Steve McKay
2d9344d5d9 Merge "Remove "HOME" directory. Use "Documents" instead." into nyc-dev am: 25a7ee08f6
am: 40cc8409e1

* commit '40cc8409e1c0255e44ce3ca2818dae9f636f9c7a':
  Remove "HOME" directory. Use "Documents" instead.
2016-02-17 18:00:54 +00:00
Steve McKay
40cc8409e1 Merge "Remove "HOME" directory. Use "Documents" instead." into nyc-dev
am: 25a7ee08f6

* commit '25a7ee08f6eaa1c0e9e2b2a0ef9b6fe8ecf5da23':
  Remove "HOME" directory. Use "Documents" instead.
2016-02-17 17:54:09 +00:00
Steve McKay
25a7ee08f6 Merge "Remove "HOME" directory. Use "Documents" instead." into nyc-dev 2016-02-17 17:46:24 +00:00
Geoff Mendal
fb7a4e73de Import translations. DO NOT MERGE
Change-Id: Ic8d25da29dbdb3132a51bef32045c166f48b8bc6
Auto-generated-cl: translation import
2016-02-17 07:11:49 -08:00
Geoff Mendal
692abd6257 Import translations. DO NOT MERGE
Change-Id: Ieaa3a9379b822388afc5ca54520cb3395d4434c6
Auto-generated-cl: translation import
2016-02-17 05:19:42 -08:00
Steve McKay
ab3b8936dc Remove "HOME" directory. Use "Documents" instead.
Use "Folder" as home icon for now.

Bug:27148009
Change-Id: I9f57bba1c8e51ae7887861923f5baa8f69ec2e6e
2016-02-16 14:52:35 -08:00
Aga Wronska
1556210cc3 Merge "Fix focus issues in directory fragment * Empty directory view gets focus when shown * Skip opening drawer when showing empty search results * Fix typo" into nyc-dev am: f9b78bb69d
am: 5bfded9c4d

* commit '5bfded9c4d893d958f2b84df78c4e49eca6e4d8f':
  Fix focus issues in directory fragment     * Empty directory view gets focus when shown     * Skip opening drawer when showing empty search results     * Fix typo
2016-02-16 18:44:26 +00:00
Aga Wronska
5bfded9c4d Merge "Fix focus issues in directory fragment * Empty directory view gets focus when shown * Skip opening drawer when showing empty search results * Fix typo" into nyc-dev
am: f9b78bb69d

* commit 'f9b78bb69db70a7b10d38ed958baf24ba96d1380':
  Fix focus issues in directory fragment     * Empty directory view gets focus when shown     * Skip opening drawer when showing empty search results     * Fix typo
2016-02-16 18:37:49 +00:00
Aga Wronska
f9b78bb69d Merge "Fix focus issues in directory fragment * Empty directory view gets focus when shown * Skip opening drawer when showing empty search results * Fix typo" into nyc-dev 2016-02-16 18:29:50 +00:00
Aga Wronska
d4b1753170 Fix focus issues in directory fragment
* Empty directory view gets focus when shown
    * Skip opening drawer when showing empty search results
    * Fix typo

Bug: 27109140
Change-Id: Ie62d48e1c3f78e5244d88067587b3e5986f99a03
2016-02-16 10:15:24 -08:00
Geoff Mendal
72e09aef9b Import translations. DO NOT MERGE
Change-Id: Icea0738fea2c10d4f4c55d4a5e1febd362dcbd3f
Auto-generated-cl: translation import
2016-02-15 07:16:11 -08:00
Geoff Mendal
6c7c3bc31f Import translations. DO NOT MERGE
Change-Id: If5258f1570c38ec37828c4515e1709407a07ab13
Auto-generated-cl: translation import
2016-02-15 05:20:00 -08:00
Ben Kwa
0e81b3c5b7 Introduce ChromeOS-style keyboard navigation.
am: 2036dad877

* commit '2036dad877336bf4d81202c334b1f2c81462bd9f':
  Introduce ChromeOS-style keyboard navigation.
2016-02-11 14:21:25 +00:00
Ben Kwa
2036dad877 Introduce ChromeOS-style keyboard navigation.
- Turn the DirectoryFragment (DF) and the RootsFragment (RF) into
  top-level views, and allow switching between them via the tab key.

- Disallow arrow-key navigation from switching the user between the
  DF and RF.

- When nothing is explicitly focused, make navigation keys focus the
  DF.  This makes it so that if a user opens DocumentsUI and just starts
  pressing arrow keys, they'll navigate in the directory listing.

- When restoring focus on the DF and RF, remember the last thing that
  was focused, and restore focus on that thing.

BUG=25195767
BUG=25121367

Change-Id: I00e20cbdbe9edfe269fb356440a93ef5d67c5298
(cherry picked from commit 1c9f9222e5)
2016-02-11 14:16:04 +00:00
Ben Kwa
1c9f9222e5 Introduce ChromeOS-style keyboard navigation.
- Turn the DirectoryFragment (DF) and the RootsFragment (RF) into
  top-level views, and allow switching between them via the tab key.

- Disallow arrow-key navigation from switching the user between the
  DF and RF.

- When nothing is explicitly focused, make navigation keys focus the
  DF.  This makes it so that if a user opens DocumentsUI and just starts
  pressing arrow keys, they'll navigate in the directory listing.

- When restoring focus on the DF and RF, remember the last thing that
  was focused, and restore focus on that thing.

BUG=25195767
BUG=25121367

Change-Id: I00e20cbdbe9edfe269fb356440a93ef5d67c5298
2016-02-10 08:37:28 -08:00
Geoff Mendal
4e60b1f041 Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-02-10 15:40:51 +00:00
Geoff Mendal
dd69f76c7b Import translations. DO NOT MERGE
Change-Id: I24d659d05ccb735b984b23fc40fe4d69c768f5c0
Auto-generated-cl: translation import
2016-02-10 07:19:37 -08:00
Ben Kwa
b7be388a96 Update the subdir icon to svg.
am: fabd228168

* commit 'fabd22816881102797c1c28540112c6ad496cfab':
  Update the subdir icon to svg.
2016-02-10 15:17:06 +00:00
Ben Kwa
fabd228168 Update the subdir icon to svg.
BUG=21705832

Change-Id: I400b5402c0efd34d79be3e8b05b2154dd8c48735
(cherry picked from commit 032c283ef3)
2016-02-10 15:14:27 +00:00
Geoff Mendal
c1dc18bfa2 Import translations. DO NOT MERGE
Change-Id: Ibc8e8fd37fa847692855b77432b579ce9d191b14
Auto-generated-cl: translation import
2016-02-10 05:24:28 -08:00
Tomasz Mikolajewski
d4b7957394 Cleanup sliding animation between directories.
am: eb33c0a53f

* commit 'eb33c0a53fc38470b52a2a021df06a9bcad15207':
  Cleanup sliding animation between directories.
2016-02-09 09:26:17 +00:00
Tomasz Mikolajewski
82e8357921 Fix animation for the empty cabinet, also make other animations less jarring.
am: 3d911ea095

* commit '3d911ea095e8f59fc7f1e1688c18b2c21a00fbec':
  Fix animation for the empty cabinet, also make other animations less jarring.
2016-02-09 09:23:02 +00:00
Tomasz Mikolajewski
eb33c0a53f Cleanup sliding animation between directories.
The shadow is restored + redundant fade removed.

Bug: 26986946
Change-Id: I31dde7d03f60be470e1c5e06dcdce828d3e4eaa0
(cherry picked from commit 3134ddf99d)
2016-02-09 09:20:53 +00:00
Tomasz Mikolajewski
3d911ea095 Fix animation for the empty cabinet, also make other animations less jarring.
Setting android:animateLayoutChanges=true was causing flickering and problems
with sliding the cabinet while a fragment transition was already in progress.

Bug: 27060052
Bug: 26952361
Change-Id: I17e5f8b57d63cd9a586fc70ae43e030c4f232e8d
(cherry picked from commit ed82fd7843)
2016-02-09 09:16:53 +00:00
Tomasz Mikolajewski
3134ddf99d Cleanup sliding animation between directories.
The shadow is restored + redundant fade removed.

Bug: 26986946
Change-Id: I31dde7d03f60be470e1c5e06dcdce828d3e4eaa0
2016-02-09 09:53:19 +09:00
Tomasz Mikolajewski
6e5e82f24d Merge "Fix animation for the empty cabinet, also make other animations less jarring." 2016-02-09 00:40:39 +00:00
Ben Kwa
032c283ef3 Update the subdir icon to svg.
BUG=21705832

Change-Id: I400b5402c0efd34d79be3e8b05b2154dd8c48735
2016-02-08 09:40:08 -08:00
Geoff Mendal
5f346b6123 Import translations. DO NOT MERGE
Change-Id: I2fd0cda2b14b49646e59253e874cef28e84a5c2f
Auto-generated-cl: translation import
2016-02-08 22:16:31 +05:30
Geoff Mendal
1cb98e034e Import translations. DO NOT MERGE
Change-Id: Iaad7778f1ee0bd39cf24556b75bbae4af63886df
Auto-generated-cl: translation import
2016-02-08 05:22:13 -08:00
Tomasz Mikolajewski
ed82fd7843 Fix animation for the empty cabinet, also make other animations less jarring.
Setting android:animateLayoutChanges=true was causing flickering and problems
with sliding the cabinet while a fragment transition was already in progress.

Bug: 27060052
Bug: 26952361
Change-Id: I17e5f8b57d63cd9a586fc70ae43e030c4f232e8d
2016-02-08 17:49:20 +09:00
Steve McKay
f873769fba Move create folder and sort to overflow menu, cleanup back behavior.
Improved drawer management in reponse to back button presses:
- if drawer is open (and we didn't just open it), close it.
- if at top of root (and we didn't close root) open it.
- there's a timeout on this behavior such that pressing back
  a second time within a 1.5 second perior will NOT initiate
  the behaviors described above.

Change-Id: I5990848cd3047d9dc985ec10e57ab3a0f99ce79c
2016-02-05 08:46:10 -08:00
Ben Kwa
fd53fdeed3 Update apostophes to material spec.
TLDR: use \u2019 instead of ' for apostrophes.

See
https://spec.googleplex.com/quantum/style/writing.html#writing-capitalization-punctuation.

Change-Id: Idc3bee55dc65a1ebd5bf12483fced85d36c1614f
2016-02-05 08:02:21 -08:00
Tomasz Mikolajewski
8c7007085e Merge "Remove DirectoryContainerView class from DocumentsUI." 2016-02-05 03:22:51 +00:00
Ben Kwa
1c3966a389 Merge "Tweak the query error message per UX." 2016-02-05 03:09:44 +00:00
Ben Kwa
c9b3bde667 Tweak the query error message per UX.
BUG=24949214

Change-Id: I207b55ebfff47cc561a536dc1827431545bf0030
2016-02-04 19:06:56 -08:00
Ben Kwa
13bbcdda48 Merge "Add vector art for empty and error screens." 2016-02-05 02:16:24 +00:00
Tomasz Mikolajewski
5bfdf2b39a Remove DirectoryContainerView class from DocumentsUI.
Removed and it works as before, I guess it was some workaround for a bug
in the past.

Change-Id: I859c995940ad04ac028aea1727a81358ca7fda1b
2016-02-05 09:50:02 +09:00
Ben Kwa
0e9aae4549 Add vector art for empty and error screens.
BUG=24949214,26143312

Change-Id: I24abe9743763d868ab6d1247aec594abec267c29
2016-02-04 16:35:27 -08:00
Steve McKay
c67aacc76f Merge "Normalize toolbar management." 2016-02-04 04:20:55 +00:00
Steve McKay
1f264a8a1a Normalize toolbar management.
Since it was almost all redundant (especially the stack stuff).
Ensure "Files" title present on drawer title in Files app.
DocumentsToolBar > DocumentsToolbar to match toolkit naming.

Bug: 26193264
Change-Id: I92c82c66d936aae3ce0f792581daa12898dfadee
2016-02-03 17:59:06 -08:00
Ben Kwa
501fde65b5 Merge "Lint fixes and config tweaks." 2016-02-03 17:12:53 +00:00
Ben Kwa
e3aee18dc9 Lint fixes and config tweaks.
- Add recommended ignore properties to lint.xml.
- Make Fragment subclasses public.
- Truncate log tags at 23 chars.
- Fix one instance of passing a color ID instead of a color.
- Misc xml property fixes.

Change-Id: Ie8d6a8932cda72b7a239f6dfab56bd854f909820
2016-02-03 09:09:40 -08:00