170 Commits

Author SHA1 Message Date
Tomasz Mikolajewski
76572d6f19 Restrict selection to 1000 items in DocumentsUI.
Bug: 27208679
Change-Id: I5e500724a3fb9af5b8f59e0c959523da5066b1fd
2016-04-19 08:51:46 +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
Aga Wronska
6af13300d4 Set status bar color to material_blue_grey_950 as specified by UX.
Change-Id: I010309c5c5aaf312e645a75720e710ef83111952
Fixing: b/27561646
2016-04-06 14:21:56 -07:00
Steve McKay
3855e9ce49 Merge "Massage code to better support Files overlay." into nyc-dev 2016-04-06 18:44:59 +00:00
Steve McKay
53f109b39e Massage code to better support Files overlay.
Also, allow "productivity_mode" config to be enabled via intent extra
    as a developement aide.

Bug: 28006206
Change-Id: I7be8d96a0e924f9ce8023347e051d28d69a0eec9
2016-04-06 10:25:02 -07:00
Ben Kwa
2084796e23 Merge "DocsUI: Update the drag shadow to meet UI spec." into nyc-dev 2016-04-06 15:02:04 +00:00
Ben Kwa
e67b0bdf5a DocsUI: Update the drag shadow to meet UI spec.
BUG=27608249

Change-Id: If10f842be4507c5f04e2e91dadcae842610388f2
2016-04-05 15:49:51 -07:00
Aga Wronska
b8572b3d50 Merge "Fix dialogs layout after keyboard shows up" into nyc-dev 2016-03-31 23:54:11 +00:00
Aga Wronska
276dcd7314 Merge "Add menu option to show/hide internal storage." into nyc-dev 2016-03-31 01:39:12 +00:00
Aga Wronska
774cc932fc Add menu option to show/hide internal storage.
This reverts commit 7c4395804e450533afb553ab992c47f737da8a9b.

Bug: 27683276
Change-Id: Id1a310b57ab7fa3c8c14b464786473f211eaf41f
2016-03-30 18:23:10 -07:00
Felipe Leme
2ac876945b Minor tweaks on Scoped Directory Access:
- Only allow entire directory access on non-primary volumes.
- Do not display primary storage label on scoped access.

BUG: 27743842
BUG: 27676858
Change-Id: I9884fb1e2df3534fceebc5d5bef44adfb758724c
2016-03-30 16:42:10 -07:00
Aga Wronska
198cbf65a4 Fix dialogs layout after keyboard shows up
Change-Id: I58e3984586e33855e95e5c2879e51f565759025b
Fixed: 27900202
2016-03-29 13:37:52 -07:00
Aga Wronska
b09985639f Add full bar mode for search view on small devices
Fixed: 27406434

Change-Id: I828ff72752cdb35dff453ea405209f169e550c1a
2016-03-28 09:14:47 -07:00
Aga Wronska
b85ec6d0ee Merge "Revert "Revert "Make status bar translucent. Make drawer appera below status bar."" with a fix for cts tests." into nyc-dev 2016-03-25 16:14:15 +00:00
Tomasz Mikolajewski
50c8d49d4c Merge "Make the activated root color darker in DocumentsUI for better a11y." into nyc-dev 2016-03-24 09:37:58 +00:00
Tomasz Mikolajewski
588d6934d5 Make the activated root color darker in DocumentsUI for better a11y.
Bug: 27724950
Change-Id: Ie1150aae6e6dabe1dc460a99deec4ccfa48ec080
2016-03-24 17:02:46 +09:00
Aga Wronska
78efc9f3d2 Revert "Revert "Make status bar translucent. Make drawer appera below
status bar."" with a fix for cts tests.

This reverts commit 0574d169ba1e649d8bd54d28ba74b9707e675e37.

Change-Id: I33deeef839092956a67ec31bcdbfbbd540db8b68
2016-03-23 14:47:47 -07:00
Felipe Leme
9eb5555aa6 Merge "Allow Scoped Directory Access on whole volume." into nyc-dev 2016-03-23 17:58:48 +00:00
Tomasz Mikolajewski
2bd66d68d8 Merge "Revert "Make the accent color darker in DocumentsUI for better accessibility."" into nyc-dev 2016-03-23 09:46:20 +00:00
Daichi Hirono
0574d169ba Revert "Make status bar translucent. Make drawer appera below status bar."
This reverts commit 4639136c3b4bc22064323a193f06d6585e1a171a.
The commit breaks the following CTS tests.

 * android.appsecurity.cts.DocumentsTest#testCreateExisting FAIL
 * android.appsecurity.cts.DocumentsTest#testCreateNew FAIL

BUG=27805363,27570567

Change-Id: Ic9f1d98714a78afe548eb5ae9afa118ddc83cccc
2016-03-23 17:29:06 +09:00
Tomasz Mikolajewski
4b9b03e6b2 Revert "Make the accent color darker in DocumentsUI for better accessibility."
We have to change the color only in a specific place,
not the accent color everywhere.

This reverts commit 8e22d69df21e638452d07f5dd12f323fb40059a5.

Change-Id: I6d712fc1d0275f91b20ff90f91450e849cbb1622
2016-03-23 00:58:05 +00:00
Tomasz Mikolajewski
13bcd7b3c3 Merge "Make the accent color darker in DocumentsUI for better accessibility." into nyc-dev 2016-03-23 00:20:05 +00:00
Aga Wronska
5f7d673f3b Merge "Add config flag to show/hide internal storage. Hide internal storage by default." into nyc-dev 2016-03-22 17:04:28 +00:00
Tomasz Mikolajewski
8e22d69df2 Make the accent color darker in DocumentsUI for better accessibility.
Bug: 27724950
Change-Id: I8c44ed6caf2b4e2933f8231e61cfbae00f4feecf
2016-03-22 13:43:06 +09:00
Aga Wronska
1719b3555d Add config flag to show/hide internal storage.
Hide internal storage by default.

Revert "Always show intern storage."

This reverts commit 7c4395804e450533afb553ab992c47f737da8a9b.

Bug: 27683276

Change-Id: I04ea8b9a307babcea003f9bec200d41265a42c7f
2016-03-21 17:33:27 -07:00
Felipe Leme
db892b84e5 Allow Scoped Directory Access on whole volume.
There are some scenarios where an app needs access to the whole SD Card,
not subdirectories. For example, user might have a SDCard with
directories like vacation_pictures (instead of Pictures/vacation);
another example is a file management app.

BUG: 27676858
Change-Id: I20ef713de7e4dfa7e2d7d07bab11898af186d673
2016-03-21 14:25:17 -07:00
Aga Wronska
4639136c3b Make status bar translucent. Make drawer appera below status bar.
Change-Id: I6089a7b5d88514f5df9212839709d38daeb3be8b
Fixed: 27570567
2016-03-21 10:53:13 -07:00
Aga Wronska
836ed4a582 Merge "Add config flag to hide home directory ("Documents") from the roots list. Make home root hidden by default." into nyc-dev 2016-03-18 00:54:16 +00:00
Aga Wronska
824ac17ae3 Generate more descriptive delete confirmation message.
Change-Id: I194ef353aec9d2841b5f3fc8dfd76df6286ce969
Fixed: 27489240
2016-03-17 16:44:10 -07:00
Aga Wronska
b4129d785c Add config flag to hide home directory ("Documents") from the roots list.
Make home root hidden by default.

Change-Id: Ia9f97f3cad7ab102d65e01d6e0dd9bc39ab72f21
Fixed: 27683725
2016-03-17 11:57:29 -07:00
Felipe Leme
493611f541 Polished Scoped Directory Access UI.
- Set proper style on custom alert dialog view.
- Fixed padding.
- Removed redundant style.
- Fixed checkbox color.

BUG: 26750152

Change-Id: Ibf3984e1b0a092affc58f1377b89b6ab7ea2a3aa
2016-03-15 16:56:15 -07:00
Felipe Leme
adccb9950e Add a "Do not ask again" checkbox.
When an app request access to a scoped directory which the user already
denied access, it will display a "Do not ask again" checkbox; if the
user checks that option, further requests will be automatically
rejected.

The history of denials is stored in the shared property file.

The UI is not polished yet, the style will be fixed in a future change.

BUG: 26750152

Change-Id: I181923adfb6a1c7c1c17e305d6838314280417fc
2016-03-15 11:12:53 -07:00
Steve McKay
32c90f1d53 Merge "Make disabled items look disabled." into nyc-dev 2016-03-09 18:35:33 +00:00
Steve McKay
df72a43218 Make disabled items look disabled.
Update app to use color-selectors for item text.

Bug: 27246583
Change-Id: I2ba0b89e4640b987da248957f8ba5e6760d1b21d
2016-03-09 09:51:19 -08:00
Aga Wronska
836202114a Merge "Added word 'selected' to action bar description of selected elements" into nyc-dev 2016-03-09 00:39:39 +00:00
Aga Wronska
91c1a434c1 Added word 'selected' to action bar description of selected elements
Bug: 27296839
Change-Id: I30d3b726f281872da298dbc481a22241fbd45a9a
2016-03-08 16:34:14 -08:00
Aga Wronska
5df50368ee Applied Material design rules to calculate drawer width
Bug: 27437727
Change-Id: I2f634815d5e534053e0ed7a66631df9bddf32bd5
2016-03-08 14:22:16 -08:00
Steve McKay
c8d4e22a72 Don't show title in delete confirmation.
Also, remove "unhide" from Adapter, since it is unused.
Had to add a custom layout because Alert didn't do a
    good job. LOTS of work for a yes/no!

Bug: 27205772
Change-Id: Ic20d73b54fd142287e07402877ac339300b4bbb7
2016-03-01 12:46:29 -08:00
Aga Wronska
868c846b91 Merge "Fix SearchView background too high" into nyc-dev 2016-02-26 23:47:16 +00:00
Aga Wronska
f6fde7e044 Merge "Don't translate our trusted quick view package val." into nyc-dev 2016-02-26 19:30:00 +00:00
Steve McKay
0a544d5aeb Don't translate our trusted quick view package val.
Change-Id: I74574e38705940b72be8afc8e3ec163fb6ccdef4
2016-02-26 11:27:09 -08:00
Aga Wronska
6543be5c17 Fix SearchView background too high
Bug: 27293462
Change-Id: Id694fc9c1a7d6e21534e74e20f95c8c080861598
2016-02-25 17:19:17 -08:00
Steve McKay
7a3b811122 Delete confirmation and notification improvements.
Bug: 27344527, 27347647, 27136182
Change-Id: Ia33f05b449a0bc30704e116287e18094e30382e0
2016-02-25 15:47:16 -08: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
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
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
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
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